Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: Make powershell window visible inside the sandbox #42

Open
obuolinis opened this issue Jul 2, 2023 · 1 comment
Open

Suggestion: Make powershell window visible inside the sandbox #42

obuolinis opened this issue Jul 2, 2023 · 1 comment

Comments

@obuolinis
Copy link

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.

@Joly0
Copy link
Contributor

Joly0 commented Jul 2, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants