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

Win7 禁止修改檔案屬性:註冊表設定 NoFileAssociate 保護檔案安全

編輯:Windows 7 系統介紹

為防止他人隨意更改檔案關聯、隱藏/唯讀屬性,可透過註冊表啟用 NoFileAssociate 值,徹底鎖死「內容」視窗中的屬性修改功能。

設定步驟

  1. Win+R 輸入 regedit 開啟註冊表編輯器。
  2. 定位至任一路徑(用戶級或機器級均可):
    HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
    或
    HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
  3. 右側空白處右鍵→「新增」→「DWORD (32 位元) 值」,命名 NoFileAssociate。
  4. 雙擊將數值資料改為 1(0=允許修改,1=禁止修改),確定並重開機或重新登入生效。
註冊表路徑 新增 DWORD 設定數值 1

效果驗證:生效後,右鍵任意檔案→「內容」→「一般」索引標籤下的「屬性」區塊(唯讀、隱藏)與「開啟方式」按鈕將變灰無法點選。若需解除,將值改回 0 或刪除該值即可。

Copyright © Windows教程網 All Rights Reserved