Applicable Products
Overview
When accessing files such as PDF or Microsoft Office documents stored on a QNAP NAS from Windows File Explorer, the Preview pane may not display the file content. Instead, Windows shows a warning message:
“This file might be unsafe to preview. If you trust the file and its source, open it to view its contents.”
This behavior is not caused by a QNAP NAS issue. Starting from Windows security updates released after October 2025 (including Windows 25H2), Microsoft introduced stricter security controls to mitigate vulnerabilities such as NTLM hash leakage. As a result, Windows may block the preview of certain file types from network sources.
Windows blocks file preview in the following scenarios:
- Files with Mark of the Web (MOTW): Files downloaded from browsers, email, or instant messaging apps may have MOTW metadata, causing Windows to block preview.
- Files accessed via a network (UNC path): Files accessed through UNC paths (e.g.,
\\NASName\Share\file.pdf) are treated as coming from the Internet Zone, resulting in preview restrictions. - Files in the Downloads folder: Files stored in the Windows Downloads folder may retain MOTW and be blocked from preview unless unblocked.
Solution
Method 1: Add the NAS to the Local Intranet zone (Recommended)
- Press Win + R, enter
inetcpl.cpl, and press Enter. - Go to the Security tab.
- Select Local intranet, then click Sites.
- Click Advanced.
- Add your NAS address, for example:
NASName192.168.1.10192.168.1.*
- Click OK to apply the settings.
After this configuration, Windows will treat the NAS as a trusted source and allow file preview.
Method 2: Map the NAS share as a network drive
- Right-click This PC in File Explorer.
- Select Map network drive.
- Enter the NAS share path (e.g.,
\\NAS\ShareName). - Assign a drive letter (e.g.,
T:\ or Z:\). - Click Finish.
Accessing files through the mapped drive enables file preview in most cases.
Method 3: Remove the Mark of the Web (MOTW) from files (If applicable)
Recommended actions:
- Add the NAS to the Local Intranet zone.
- Access files using a mapped network drive instead of a UNC path.
These steps allow file preview to function correctly while maintaining system security. This is a Windows client-side issue related to NTLM hash protection, Mark of the Web (MOTW), and Windows trust zones, not a malfunction of the NAS.
适用产品
概述
当从 Windows 文件资源管理器访问存储在 QNAP NAS 上的 PDF 或 Microsoft Office 文档等文件时,预览窗格可能无法显示文件内容。相反,Windows 会显示一条警告信息:
“此文件可能不安全,无法预览。如果您信任该文件及其来源,请打开以查看其内容。”
这种行为不是由 QNAP NAS 问题引起的。从 2025 年 10 月之后发布的 Windows 安全更新(包括 Windows 25H2)开始,微软引入了更严格的安全控制措施,以减轻诸如 NTLM 哈希泄漏等漏洞。因此,Windows 可能会阻止来自网络源的某些文件类型的预览。
Windows 在以下情况下阻止文件预览:
- 具有网络标记 (MOTW) 的文件: 从浏览器、电子邮件或即时通讯应用下载的文件可能带有 MOTW 元数据,导致 Windows 阻止预览。
- 通过网络(UNC 路径)访问的文件: 通过 UNC 路径访问的文件(例如,
\\NASName\Share\file.pdf)被视为来自互联网区域,导致预览限制。 - 下载文件夹中的文件: 存储在 Windows 下载文件夹中的文件可能保留 MOTW 并被阻止预览,除非解除阻止。
解决方案
方法 1:将 NAS 添加到本地 Intranet 区域(推荐)
- 按下 Win + R,输入
inetcpl.cpl,然后按下 Enter。 - 转到 安全 选项卡。
- 选择 本地 Intranet,然后点击 站点。
- 点击 优异。
- 添加您的 NAS 地址,例如:
NASName192.168.1.10192.168.1.*
- 点击 确定 以应用设置。
完成此配置后,Windows 会将 NAS 视为可信来源,并允许文件预览。
方法二:将 NAS 共享映射为网络驱动器
- 右键点击 此电脑 在文件资源管理器中。
- 选择 映射网络驱动器。
- 输入 NAS 共享路径(例如,
\\NAS\ShareName)。 - 分配一个驱动器号(例如,
T:\ 或 Z:\)。 - 点击 完成。
通过映射的驱动器访问文件通常可以启用文件预览。
方法三:移除文件的网页标记(MOTW)(如适用)
推荐操作:
- 将 NAS 添加到本地 Intranet 区域。
- 使用映射的网络驱动器而不是 UNC 路径访问文件。
这些步骤可以在保持系统安全的同时正确启用文件预览。这是一个与 NTLM 哈希保护、网页标记(MOTW)和 Windows 信任区域相关的 Windows 客户端问题,而不是 NAS 的故障。