File Explorer not previewing pdf files since 25H2 update

Paul Nicholson 545 Reputation points
2025-10-15T08:07:37.1033333+00:00

Since installing the 25H2 update to Windows 11, the preview for pdf files is not working.

I just get the following message "The file you are attempting to preview could harm your computer. If you trust the file and the source you received it from, open it to view its contents"

I have tried everything to restore the preview without success.

Any help would be much appreciated!

Windows for home | Windows 11 | Files, folders, and storage
{count} votes

69 answers

Sort by: Most helpful
  1. Mark Zuber 105 Reputation points
    2025-10-15T09:35:21.4533333+00:00

    Hey everyone,

    Just wanted to chime in – I’ve been running into the same issue with PDF previews in File Explorer since the 25H2 update. Some PDFs show the preview just fine, but others throw this message:

    "The file you are attempting to preview could harm your computer."

    After digging around a bit, I realized it’s related to the Mark of the Web (MOTW). Windows tags files downloaded from the internet, and apparently the preview handler now treats those more strictly.

    As a workaround, I ran this PowerShell command to unblock the files in a folder:
    Get-ChildItem -Path "C:\Users\Username\Documents\PDF" -Recurse | Unblock-File

    That actually fixed the preview for those PDFs – but it’s not really a proper solution. I’d rather not have to run this manually or script it every time. Would be great if Microsoft gave us a way to trust certain folders or disable this check for local files.

    Anyone else found a cleaner fix?

    Kind regards,

    21 people found this answer helpful.

  2. R B 110 Reputation points
    2025-10-16T01:56:57.3666667+00:00

    Problem Solved!! I un-installed the 25H2 updates and everything works GREAT!!

    18 people found this answer helpful.

  3. Striver 75 Reputation points
    2025-10-16T01:38:26.39+00:00

    Work-around: Use Microsoft Power Toys to preview.

    Install Microsoft's free Power Toys, which has many other great features. Installation is quick and easy.

    To preview a file in File Explorer, highlight the file. Then Ctrl + Space. Preview pops up.

    Works for most kinds of files.

    15 people found this answer helpful.

  4. Vivekanandan Tiwari 75 Reputation points
    2025-10-20T03:18:02.11+00:00

    Here is a simple solution that worked for me -

    in the file explorer, just disable this check box as shown in the image, this simply worked for me

    (This happened on windows 10 as well!)
    Screenshot 2025-10-20 084655

    15 people found this answer helpful.

  5. Anonymous
    2025-10-17T02:13:01.54+00:00

    Hello.

    I have today noticed this message & I have not yet downloaded/installed 25H2.

    It was discovered the Security Update for Microsoft Windows (KB5066835), installed on Oct 15, 2025 could be the culprit. I uninstalled the update & previewing .pdf's has been restored.

    Still running 24H2.

    I hope this helps.

    13 people found this answer helpful.

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.