launch process from Session 0 Isolation
问题 On Windows 8.1 I have a service that starts PowerShell scripts. The service runs as “nt authority\system” in Session 0 Isolation. Any process that I spawn from PowerShell runs as “nt authority\system” in Session 0 Isolation. I need to run a script that is under a user account out of session 0 and not the system account. I have tried this Start-Process "$PsHome\PowerShell.exe" -Credential $pp -ArgumentList $script -wait and PsExec specifying which session I want with "-I 1" argument. & PsExec