0

Hy,

how to hide powershell script window in windows 10 task scheduler application?

This is how I try:

-executionpolicy bypass "c:\script\teszt.ps1" - windowstyle hidden

but this doesn't work the program starts, the powershell window remains on the screen in the foreground

Csaba
  • 1
  • 1
    Put -windowstyle before the script name: `powershell.exe -executionpolicy bypass -windowstyle hidden "c:\script\teszt.ps1"` – Mathias R. Jessen Mar 02 '23 at 10:56
  • For answers please look Check [here](https://stackoverflow.com/questions/1802127/how-to-run-a-powershell-script-without-displaying-a-window) and [here](https://stackoverflow.com/questions/75255390/run-powershell-encoded-command-single-vbs-file-no-third-party-tools) – Nawad-sama Mar 02 '23 at 14:35

0 Answers0