schtasks /create /tn "Daily Shutdown" /tr "shutdown.exe /s /f /t 0" /sc daily /st <每日關機時間>
例如1800關機
schtasks /create /tn "Daily Shutdown" /tr "shutdown.exe /s /f /t 0" /sc daily /st 18:00
列出自訂工作
schtasks /query /tn "Daily Shutdown"
刪除任務
schtasks /delete /tn "Daily Shutdown" /f
/tn "Daily Shutdown": 指定要刪除的任務名稱,必須與建立時的名稱一致。
