Run-in-Sandbox icon indicating copy to clipboard operation
Run-in-Sandbox copied to clipboard

Suggestion: Make powershell window visible inside the sandbox

Open obuolinis opened this issue 2 years ago • 1 comments

The reasoning is that running a powershell script in sandbox is very handy for testing scripts, and while testing you really want to see everything that powershell outputs in the console.

It would take just a little tweak to the powershell command line in RunInSandbox.ps1:

From: powershell.exe -sta -WindowStyle Hidden -NoProfile -ExecutionPolicy Unrestricted -File To: powershell.exe -sta -NoProfile -ExecutionPolicy Unrestricted -Command `"start powershell {-NoLogo -NoExit -File (plus of course a closing brace after a file name and any params)

P.S. powershell is already running hidden, no need for -WindowStyle Hidden. I have to add that I did my tests on Windows 11.

obuolinis avatar Jul 02 '23 19:07 obuolinis

Hm, i will look into it, but might be a good idea for some other things aswell (intunewin, cmd, vbs, etc)

Joly0 avatar Jul 02 '23 20:07 Joly0