You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since you already have Run as system and Run with params, why not go and combine them? It would be useful for those who deploy their powershell scripts with Intune or SCCM, where scripts run in System context.
For this feature the code would be the same as for PS1Params, only the final command line would be different:
Since you already have Run as system and Run with params, why not go and combine them? It would be useful for those who deploy their powershell scripts with Intune or SCCM, where scripts run in System context.
For this feature the code would be the same as for PS1Params, only the final command line would be different:
Here:
$Sandbox_Root_Path
is the folder where C:\ProgramData\Run_in_Sandbox gets mapped (C:\Run_in_Sandbox in my case)psexec \\localhost -s
was the only way it worked for me$PSRun_File
needs to drop-WindowStyle Hidden
and add-NoExit
Personally I used:
$PSRun_File = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -Sta -ExecutionPolicy Bypass -NoLogo -NoExit -File"
The text was updated successfully, but these errors were encountered: