安装 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从带有 Web 标记 (MOTW) 的 Internet 下载。
  • Files从某些远程位置(例如某些 WebDAV 或基于 HTTP 的位置)复制。
  • Files未分类为 Intranet 或区域策略信任的网络路径。

哪些内容不受影响

此更改仅影响 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