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/Win8.1 開啟 CHM 檔案一片空白?右鍵屬性「解除鎖定」一鍵修復

編輯:關於 Windows

Win7/Win8.1 下開啟 .chm 說明檔案內容全白、目錄可見但無正文。非中毒、非檔案損壞,而是 Windows 附件管理機制 (Mark of the Web) 將下載/複製自網路/外部來源的 CHM 標記為「不安全區域」,HTML Help 查看器 (hh.exe) 基於安全策略拒絕渲染內容。解法:檔案右鍵 → 內容 → 一般索引標籤 → 勾選「解除鎖定」 → 確定 → 重新開啟。

操作示範(含截圖)

  1. 找到 .chm 檔案 → 右鍵 → 內容。
    CHM 檔案屬性
    屬性一般索引標籤
  2. 底部 安全性 區塊 → 勾選 解除鎖定 → 確定。
    勾選解除鎖定
  3. 重新雙擊開啟 .chm,內容正常顯示。
    CHM 正常顯示

原理深度解析

  • Mark of the Web (MotW):NTFS 替代資料流 (ADS) :Zone.Identifier 儲存區域識別碼 (ZoneId=3 為網際網路區域)。
  • HTML Help 查看器策略:HKEY_CURRENT_USER\Software\Microsoft\HTML Help\1.x\ItssRestrictions 中 MaxAllowedZone 預設為 1 (區域內網),網際網路區域 (3) 被封鎖渲染。
  • 解除鎖定動作:刪除 :Zone.Identifier ADS,ZoneId 回歸本機 (0),hh.exe 允許渲染。

批量解除鎖定 (PowerShell 管理員)

Get-ChildItem -Path "D:\Docs" -Filter *.chm -Recurse | ForEach-Object {
  Unblock-File -Path $_.FullName
  Write-Host "已解除鎖定:" $_.FullName
}

或使用 Streams.exe (Sysinternals):streams -d -s D:\Docs\*.chm。

預防建議

  • 從可信來源下載 CHM 後,先解除鎖定再分發/備份。
  • 內網檔案伺服器設定 Group Policy:使用者設定 → 系統管理範本 → Windows 元件 → 附件管理員 → 「不保留區域資訊」啟用,自動不寫入 MotW。
Copyright © Windows教程網 All Rights Reserved