Try to run a script as SYSTEM

Hello,

I want a bundle to run a script as system user but it dows not work.

I tries "Launch Executable" and "Run Scripts" actions.

With Lauch Executable I have :

Command : c:\windows\system32\cscript.exe
Command line parameter : c:\windows\system32\slmgr.vbs /ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4

With RunScript I have :

Script file name : c:\windows\system32\slmgr.vbs
Script parameters : /ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
Path to script engine : c:\windows\system32\cscript.exe

Both of them does not work.

What's wrong?

Regards,

ZCM 11.1

Tags:

  • Have you tried a simpler script, perhaps one that just launches a simple
    process such as Notepad. (You would need to use TaskMgr to verify since
    it will be hidden since its a system process.)

    The reason I ask is perhaps that VBS script does not like running as
    System. It may expect the user to be an Administrator.

    On 1/10/2012 10:56 AM, micgra wrote:
    >
    > Hello,
    >
    > I want a bundle to run a script as system user but it dows not work.
    >
    > I tries "Launch Executable" and "Run Scripts" actions.
    >
    > With Lauch Executable I have :
    >
    > Command : c:\windows\system32\cscript.exe
    > Command line parameter : c:\windows\system32\slmgr.vbs /ipk
    > FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
    >
    > With RunScript I have :
    >
    > Script file name : c:\windows\system32\slmgr.vbs
    > Script parameters : /ipk FJ82H-XT6CR-J8D7P-XQJJ2-GPDD4
    > Path to script engine : c:\windows\system32\cscript.exe
    >
    > Both of them does not work.
    >
    > What's wrong?
    >
    > Regards,
    >
    > ZCM 11.1
  • Finally I've written the scrit on a batch file and use it in the bundle on an run script action.