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

禁止修改 Windows XP 檔案屬性(只讀/隱藏/存檔):登錄一招防資料外洩與惡意隱藏

編輯:Windows XP 系統介紹

前言:檔案屬性被惡意改為隱藏/唯讀會導致資料「消失」或無法修改,登錄鎖定屬性編輯功能可有效防範

操作步驟(附圖解)

  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 NoFileAssociate,值設 1(1=禁止修改屬性,0=允許)。
  4. 效果即時生效:檔案右鍵「內容」→「一般」頁籤的「唯讀」、「隱藏」、「存檔」核取方塊變灰不可點選。

執行regedit示意圖

登錄路徑定位示意圖

NoFileAssociate設為1示意圖

檔案屬性編輯被鎖定示意圖

適用情境

  • 共用電腦防止他人惡意隱藏檔案。
  • 重要文件防止誤設唯讀導致無法存檔。
  • 需修改屬性時,將值改回 0 或刪除該鍵值即可恢復。
Copyright © Windows教程網 All Rights Reserved