Absent Member.
Absent Member.
2716 views

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 & WIndows 7 SP1 64bits
Labels (2)
0 Likes
2 Replies
Highlighted
Micro Focus Expert
Micro Focus Expert

Re: Try to run a script as SYSTEM

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& WIndows 7 SP1 64bits
>
>



--
Craig Wilson - MCNE, MCSE, CCNA
Novell Knowledge Partner

Novell does not officially monitor these forums.

Suggestions/Opinions/Statements made by me are solely my own.
These thoughts may not be shared by either Novell or any rational human.
--
Please give a hearty thumbs up to any post you find helpful!
To find articles by Craig Wilson simply follow the link: Craig Wilson's Tips!
0 Likes
Highlighted
Absent Member.
Absent Member.

Re: Try to run a script as SYSTEM

Finally I've written the scrit on a batch file and use it in the bundle on an run script action.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.