Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Windows 綜合教學 >> 關於 Windows

Win7 群組原則關閉 USB 自動播放:防範 Autorun 病毒傳播

編輯:關於 Windows

USB 自動播放功能雖方便,卻是 Autorun 病毒、蠕蟲傳播主要管道。透過群組原則全域停用所有磁碟機自動播放,大幅降低可移式儲存裝置感染風險。適用 Windows 7 專業版/企業版/旗艦版。

設定步驟

  1. Win+R → gpedit.msc
  2. 電腦設定 → 系統管理範本 → Windows 元件 → 自動播放原則
  3. 雙擊「關閉自動播放」 → 選擇「已啟用」
  4. 「關閉自動播放」下拉選單選擇「所有磁碟機」 → 「確定」

開啟群組原則 自動播放原則位置 設為已啟用所有磁碟機

補充防護措施

  • 註冊表替代(家用版):HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoDriveTypeAutoRun = 0xFF (255,十六進位 FF,禁用所有磁碟機類型)
  • 按住 Shift 鍵:插入 USB 時按住 Shift 可暫時略過自動播放
  • 防毒軟體 USB 疫苗:建立 `autorun.inf` 資料夾佔用根目錄,防止惡意程式寫入自動執行檔
  • 停用 Shell Hardware Detection 服務:`services.msc` → Shell Hardware Detection → 停用並設為手動(會同時影響光碟自動播放)

影響範圍

設定生效後:USB 隨身碟、外接硬碟、光碟、記憶卡插入不再彈出自動播放對話框,需手動開啟「電腦」點選磁碟機存取。網路磁碟機、固態硬碟不受影響。

Copyright © Windows教程網 All Rights Reserved