2017-02-04 71 views

回答

0

不確定硒(不知道那是什麼),但PowerShell腳本可以使用常規的Windows任務計劃安排。

計劃使用Windows任務調度程序(taskschd.msc)使用SchTasks.exe將任務可以手動創建,或通過命令行,如:

schtasks.exe /Create /sc weekly /d THU /st 18:00 /tn MyPowerShellJob /tr "%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe -file d:\MyScript.ps1 \"hello world\" foo" /ru JohnDoe /rp