How to run powershell as system account
POWERSHELL
There are two ways to run your powershell script as the SYSTEM account:
- Use PsExec
Psexec.exe -i -s C:\WINDOWS\system32\WindowsPowerShell\v1.0\powershell.exe`
- Create a scheduled task that runs it as system, use
-User 'NT AUTHORITY\SYSTEM'.