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

Powershell Window Shown at Login #12

Open
nlvw opened this issue Sep 23, 2022 · 0 comments
Open

Powershell Window Shown at Login #12

nlvw opened this issue Sep 23, 2022 · 0 comments

Comments

@nlvw
Copy link

nlvw commented Sep 23, 2022

As of Commit "f8f3ce77ddd042ef809a1e1b5b3d74f170ede8fb" the scheduled task triggers a powershell window popups while the script runs.

This can, and in my opinion should, be fixed by adding -nologo -windowstyle Hidden to the action arguments.

Program/script:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe

Add arguments:
-ExecutionPolicy Bypass -nologo -windowstyle Hidden -File "C:\Users\exampleuser\WSL-Network-Fix\Register-DeterministicNetwork.ps1" -NetworkType "WSL" -GatewayAddress "192.168.100.1" -NetworkAddress "192.168.100.0/24"

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

1 participant