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

Win10 怎麼把 USB 做成開機金鑰?插上才能進系統,群組原則啟動腳本實作

編輯:Windows 10 系統介紹

想用實體 USB 隨身碟當電腦「鑰匙」,拔掉就無法開機?利用群組原則「啟動腳本」檢查 USB 特定檔案是否存在,不存在則自動關機。製作簡單、安全性高,遺失 USB 只需重製同名檔案即可恢復。

製作 USB 開機金鑰

  1. 插入 USB,記下磁碟代號(如 G:)。
  2. USB 根目錄新建任意檔案(如 123.kkk),內容可為空。
  3. 桌面新建文字文件,輸入:
    @echo off
    if not exist G:\123.kkk shutdown -s -t 5 -c "您沒有啟動鑰匙,禁止登入系統"
    (G: 改為實際 USB 磁碟代號)
  4. 另存為 lock.bat(全檔案類型)。
  5. Win+R → gpedit.msc → 電腦設定 → Windows 設定 → 指令碼 (啟動/關機) → 啟動 → 「新增」→ 選取 lock.bat → 確定。

關鍵提醒:USB 內的 123.kkk 絕不可刪除,否則自己也進不去系統。遺失 USB 時,新 USB 建立同名檔案即可。此法僅適用專業版/企業版(需 gpedit.msc),家庭版可用第三方工具(如 USB Raptor、Predator)實現同樣功能。

Copyright © Windows教程網 All Rights Reserved