使用指令設定windows 系統每日關機

URL Link //n.sfs.tw/16565

2025-11-17 13:27:02 By igogo

 

 

 

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": 指定要刪除的任務名稱,必須與建立時的名稱一致。