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

讓電腦僅在插入專屬 USB 隨身碟時才能啟動

編輯:XP 系統應用技巧

實現「無專屬 USB 即關機」的防盜/隱私保護:

  1. 確認 USB 磁碟代號 (如 I:)。
  2. USB 內建立任意檔案 (如 123.lj) 作為金鑰。
  3. 本機建立批次檔 auto.bat 內容:
    if not exist I:\123.lj shutdown -s -t 10 -c "您無法使用此電腦"
  4. gpedit.msc → 電腦設定 → Windows 設定 → 指令碼 (啟動/關機) → 啟動 → 加入 auto.bat。

應急解鎖:

  • 倒數 10 秒內執行 shutdown -a 取消關機。
  • 進入安全模式 (不載入啟動指令碼) 刪除群組原則中的啟動指令碼。

⚠ 設定前務必確認磁碟代號正確,否則系統將無法啟動。

Copyright © Windows教程網 All Rights Reserved