安裝 2026 年 6 月 Windows 安全性更新之後,自訂資料夾圖示或當地語系化的資料夾名稱可能不會顯示

套用到
Win 10 Ent LTSB 2016 Win 10 Ent LTSC 2019 Windows 10 IoT Enterprise LTSC 2021 Windows 10, version 22H2, all editions Windows 11 Home and Pro, version 22H2 Windows 11 Enterprise Multi-Session, version 22H2 Windows 11 Enterprise and Education, version 22H2 Windows 11 IoT Enterprise, version 22H2 Windows 11 SE, version 23H2 Windows 11 Home and Pro, version 23H2 Windows 11 Enterprise and Education, version 23H2 Windows 11 Enterprise Multi-Session, version 23H2 Windows 11 version 24H2, all editions Windows 11 version 25H2, all editions Windows 11 version 26H1, all editions Windows Server 2012 ESU Windows Server 2012 R2 ESU Windows Server 2016 Windows Server 2019 Windows Server 2022 Windows Server 2025

注意

原始發佈日期: 2026 年 6 月 10 日
KB IB: 5103160

簡介

安裝 2026 年 6 月 9 日或之後發行的 Windows 安全性更新之後,您可能會注意到某些資料夾出現下列其中一種或兩項行為:

  • 自訂資料夾圖示由 desktop.ini 定義。
  • 由 desktop.ini 定義的當地語系化資料夾顯示名稱不再出現,資料夾會改為顯示其原始名稱。

即使使用者 尚未 變更應用程式或資料夾設定,也可能發生此行為。

新的行為內容

這是預期的新行為。 從 2026 年 6 月 9 日發行的 Windows 安全性更新開始,已針對 desktop.ini 處理引進安全性強化變更。 當 Windows 無法建立 desktop.ini 檔案的來源是否受信任時,Windows 會忽略該檔案,並視該檔案視為不存在。 不過,來自信任來源的 desktop.ini 檔案仍會繼續正常運作。

Windows 可能視為不受信任的來源範例包括:

  • Files從帶有 Mark-of-the-Web (MOTW) 的網際網路下載。
  • 從某些遠端位置複製的 Files,例如某些 WebDAV 或基於 HTTP 的位置。
  • 未分類為內部網路或區域原則信任的網路路徑上的 Files。

未受影響的項目

此變更只會影響 desktop.ini 導向的資料夾呈現行為,例如自訂圖示和當地語系化資料夾名稱。 這 不 會影響對資料夾或其中檔案的存取。

管理新的預設行為

選項 1:將來源新增至信任的網站 (建議的)

如果受影響的內容儲存在已知的內部或受管理來源,請將該來源新增至 信任的網站 清單。 一旦將來源視為信任,Windows 就會正常處理來自該來源的 desktop.ini 。 這可以為其他地點提供保護,並且是風險較低的選擇。

選項 2:使用原則還原先前的行為

需要更廣泛相容性的組織可以啟用 原則:允許在檔案捷徑圖示中使用遠端路徑。 啟用此原則可還原受影響的遠端或不受信任案例的 2026 年 6 月之前的行為。

注意

重要 使用廣泛的退出會降低對惡意遠端資料夾自訂內容的保護。 如果您使用因應措施,Microsoft 建議只信任受控的內部來源,並儘可能縮小信任設定。

選項 3:檢查並移除 Web (MotW) 的標記

如果 desktop.ini 檔案具有 Web (MotW) 的標記,Windows 可能會將其視為來自不受信任的來源,並封鎖自訂。 驗證 MotW 是否存在,如果適用,請將其從 desktop.ini 檔案中刪除。 這可以還原預期的行為,但僅適用於信任的內容,因為這會移除相關聯的安全性保護。

若要移除 MotW 標籤,請開啟 PowerShell 並執行下列其中一個命令:

  • 針對單一 desktop.ini 檔案:

    注意

    Unblock-File "C:\Your\Folder\Path\desktop.ini"

  • 針對資料夾中的所有 desktop.ini 檔案:

    注意

    Get-ChildItem "C:\Your\Folder\Path" -Recurse -Filter desktop.ini -Force | Unblock-File