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

U盤設置只讀模式防誤刪/病毒寫入:註冊表 WriteProtect=1 一鍵鎖定寫入

編輯:USB 隨身碟安裝系統

想把 U盤變「只讀光盤」,防止文件被誤刪、病毒寫入、隱私外洩?註冊表一鍵開啟全局寫保護(影響所有可移動存儲設備)。

設置步驟

  1. Win+R → regedit 打開註冊表編輯器。
  2. 定位路徑:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\StorageDevicePolicies
    (若無 StorageDevicePolicies 鍵,右鍵 Control → 新建 → 項 → 命名為 StorageDevicePolicies)
  3. 右側新建/修改 DWORD (32位) 值 名稱 WriteProtect,數值數據設為 1(十六進制/十進制均可),確定。
  4. 重新插拔 U盤,嘗試寫入將提示「磁盤受寫保護」。

解除只讀: 將 WriteProtect 值改為 0 或刪除該值,重新插拔即可恢復讀寫。
注意: 此設置為全局生效,插入任何可移動磁盤均為只讀。若需單盤只讀,請用 U盤硬件寫保護撥鍵或 BitLocker 僅讀權限。

Copyright © Windows教程網 All Rights Reserved