[PS] Runing a script as SYSTEM user
HI
In PowerShell for Windows 7, how can I do to run a ps1 script as SYSTEM user?
THANKS
BYE
In PowerShell for Windows 7, how can I do to run a ps1 script as SYSTEM user?
THANKS
BYE
0 Comments
[ + ] Show comments
Answers (3)
Please log in to answer
Posted by:
anonymous_9363
14 years ago
Posted by:
AngelD
14 years ago
You need to run the powershell in a console started as the system account.
Launch cmd.exe with "Run as administrator"
In the launched cmd.exe execute "psexec.exe -s cmd.exe" (get it from sysinternals.com)
Now execute your powershell (or what ever command you like) which should be executed under the system account
Launch cmd.exe with "Run as administrator"
In the launched cmd.exe execute "psexec.exe -s cmd.exe" (get it from sysinternals.com)
Now execute your powershell (or what ever command you like) which should be executed under the system account
Posted by:
anonymous_9363
14 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.