Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

離開電腦自動關機?任務排程器 + shutdown.exe 打造無人值守關機機制

編輯:XP 系統基礎知識

臨時離開電腦又不想讓別人亂用,設定「閒置超過 N 分鐘自動關機」,搭配 BIOS 開機密碼,安全又省電。

實作步驟

  1. 桌面右鍵 → 新增捷徑 → 位置輸入:
    shutdown.exe -s -f -t 10 -c "主人不在,即將關機"
    (98 用 rundll32.exe user.exe,ExitWindows)
    名稱:ShutdownComputer
  2. 開啟「工作排程器」 → 將捷徑拖入。
  3. 雙擊工作 → 「排程」分頁 → 「排程工作」選「閒置」→ 「電腦閒置超過」設 25 分鐘(建議 15~30 分鐘,太短頻繁開關機傷硬體,太久失去保護效果)。
  4. 「設定」分頁 → 清空所有核取方塊 → 確定。

原理說明

任務排程器偵測鍵盤/滑鼠無動作超過設定時間 → 執行 shutdown.exe 強制關閉程式並關機。他人想用必須知道 BIOS 開機密碼,雙重保護。

Copyright © Windows教程網 All Rights Reserved