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

79 answers

Sort by: Most helpful
  1. Alberto Pinho 0 Reputation points
    2025-12-12T10:48:17.74+00:00

    Bom dia. Tenho milhares de arquivos pdf no meu computador. Como desbloquear todos ao mesmo tempo? Na verdade tenho arquivos baixados da web e criados por mim (por exemplo, usando PRINT TO PDF, DORO PDF, SAVE AS PDF....) que são ou não visualizados. Muito obrigado.

    0 comments No comments

  2. Sue S 10 Reputation points
    2025-12-12T20:18:09.4433333+00:00

    Microsoft needs to make a work around for this moronic update. My entire job revolves around pdf's within our organization. To get the preview to work, I have to open it, print it to a new pdf and name it something different. If I want the original file name, after I print the pdf with a modified name, I have to delete the original, then rename the one I printed back to the original name! This is a complete time waster! At the current time, this is the only way to get around the failure to preview that I've found, and I found it by pure desperation.

    0 comments No comments

  3. Avi 0 Reputation points
    2025-12-13T00:17:10.0566667+00:00

    found this in an earlier post, so far it works - downside, need to run it everyday or multiple times a down.

    I copied the Commands (below) into a Word Doc and paste into Powershell, and run it more than once a day or multiple times. My files are on a server so for convenience, I keep PowerShell minimized but you must copy\paste the command each time. There's a was to write a script to have windows run it but this is beyond my skillset.

    Open Windows PowerShell {run as Admin}

    Change directory – for example, if your documents are in the ‘Downloads’ folderUser's image

    Type one of the following commands after the prompt ‘ >’  for the new directory path

    For : PDF Docs

    > Get-ChildItem "$env:C:*Downloads*" -Filter *.pdf -Recurse | Unblock-File

    For: EXCEL Docs

    > Get-ChildItem "$env:C:*Downloads*" -Filter *.xlsx -Recurse | Unblock-File

    For: TEXT docs

    > Get-ChildItem "$env:C:*Downloads*" -Filter *.txt -Recurse | Unblock-File

    0 comments No comments

  4. Mikael Matevosyan 0 Reputation points
    2025-12-13T08:25:18.2+00:00

    Guys this is the solution. Run PowerShell as administrator, then copy and paste the first command. Press enter. After that, copy and paste the second command, press Enter, and voilà.

    1. PS C:\WINDOWS\system32> New-Item `

    -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies" `

    -Name "Attachments" `

    -Force

    2.PS C:\WINDOWS\system32> Set-ItemProperty `

    -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments" `

    -Name "SaveZoneInformation" `

    -Value 1 `

    -Type DWord

    0 comments No comments

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.