hiding of scheduled execution of powershell script

2019-08-27 02:51发布

问题:

I scheduled execution of *.ps1 script in Windows 7 scheduler. Everything is cool but i need it to execute silently (not showing PowerShell window every time)

回答1:

use PowerShell.exe -WindowStyle Hidden