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!)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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!
Unfortunately, this doesn't work for me. I think it has to with the files being on a network drive.
I have tried both provided solutions.
This is my organizations problem too. I can preview all sorts of files that are saved and created locally but nothing from/on my network drives. Even ones I've specifically gone into the properties to check the 'unblock' box still won't allow me to preview.
Same here. This is completely screwing up our org's digital document workflow.
Oddly, I have found that if the path is routed as a network drive (ie. Drive T:\FolderName) the preview appears to work. Not as a network path (ie. \192.168.x.x\FolderName)
Same for me
I've tried all the fixes, nothing works.
I wish I hadn’t updated my system last night.
Same issue here after running 10/15/25 update. getting same message on 99% of the files, Word, PDF, Excel, etc. Tried uninstalling/rolling back the update and ran into another error. 0x800f0825... 10/16/25 - emailed MS support regarding update uninstall error... and MS support basically went Goodfellas on me.. F U pay me. I have to now choose to pay for a support plan.
funny how this is coming up right as they end Win10 support. Unreal!
I'm suffering from this too! I cannot understand why a simple update would disable the ability to preview files, which we've enjoyed for years. This is now crippling my daily work, and driving me crazy.
Hi,
Thanks for checking those already, and good call on trying the repair too.
Regards,
This is extremely frustrating and time wasting as we use the preview pane for all our pdf files. Opening each file to view it is an extreme time waster for us. Please Microsoft, give us an easy fix.
Problem Solved!! I un-installed the 25H2 updates and everything works GREAT!!
This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
I uninstalled and no change :( ---UPDATE: Uninstalled all updates that came with the 25H2 updates on 10/15/25. Restarted and all was good. The updates re-installed overnight. Uninstalled again and turned off automatic updates. So far all good.
I uninstalled the update (which was installed for me on the 15/10) and it works great now. I can preview the files just fine.
My other colleagues - who were also struggling with this update - have tried the uninstall method and it has worked. It may not work for all, but it should work for most.
Just add the path where your files are saved.
This only works for internet sites with a https:// prefix. I don't believe you can add local or network drives here...
Well done, Masha Allah, it works, thank you brother.
Paul Nicholson it works for me. If you type file://then your path.
my example is file://desktop-2022\users\ME\Desktop\Email attachments to rename\
I was having the same issue with a customer of ours,
Their issue was when the PDF files are located in their OneDrive folder on file explorer.
If anyone is having issues with it just being PDF previews inside the OneDrive folder, what you can do is this:
For PDFs on physical drives, it doesn't look like there is no permanent fix, but theres an answer on this forum relating to power-shell that looks like it works.
Yup, similar issue with the latest update. Image files seem to appear in the preview pane, but 3d files don't show in file explorer's preview pane anymore as well as some pdf files. Note I added 3dview for Win 11 home, which worked fine until the update. Curiously zipped files with 3d files etc show fine in the preview pane when accessed.
I was getting hopeful with a couple of the suggestions.
My files are actually on a shared Teams folder synched to my OneDrive, so added both www.onedrive.com and the Teams Sharepoint path to Trusted Sites on Internet Settings.
Also added the file path as per Drewstein's suggestion in this form:
file://desktop-2022\users\ME\Desktop\Email attachments to rename\ (obvs changed for my path)
Unfortunately none of them have worked for me...😖
Does this mean we need to ignore update from now on?
Could this mean a switch to apple?
What a pain!
The same worked for me, surely such a mega organisation has a Quality Control procedure that should capture this sort of thing?
I've tried the different "fixes" as well and it's nothing is working for me either. Word, Excel, and images preview - PDFs and TEXT files are NOT. This is the same issue with both local locations (i.e. on my hard drive) and on cloud based paths.
Apple has its own version of this, since there are RAMPANT issues with security these days. The entire concept of "getting things from outside your desktop" is a problem that needs to be addressed by all major players. Do not ignore updates, it's actually quite the opposite. Ensure you ARE updated.
I also UN-installed ... An hour of my life I'll never get back!
My question is, if my PC is on Auto Update, then the same issue will come up again, correct? I've never had a problem with Windows updates until today. I'd rather keep my PC up to date!
I resolved this at my company. You need to put "file://" in front of any area you are trying to allow. Follow the instructions Crsjn describes but add "file://"
This worked like a "hot damn"! Thanks everyone!!
Cool, Microsoft deploys new "security features" with no way to manage them apart from a hacky and all out "disable security feature". Seems MS hasn't learned anything and I will continue to be baffled by their approach to anything but data mining and greed.
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.
I hope this helps.
Has anyone found a permanent solution so far, or do we need to wait for a new Microsoft update to resolve this issue?
I tried adding the local path for my files as outlined by CrsJn (thank you), but it tells me that I can't have wildcards (*). I don't have any wildcards. It appears it only accepts internet paths. These files are on OneDrive, so I signed onto OneDrive and added the path for the parent folder. Tried previewing the files - I can preview PDFs in the parent folder but not in the subfolders. When I tried adding a subfolder to trusted sites, it tells me it's already in the trusted zone. Very frustrating.
Adding our Shared Drive (t:) with the file:// seems to have sorted the issue. This was happening on a 24H2 and a 25H2 system, so I don't believe that it's entirely a 25H2 issue.
I have not yet installed the update but am getting the same message on my computer when I try to open PDF that are stored in my downloads. This is most inconvenient as I preview everything before I open it. Why is this happening since I haven't even installed the update yet>
I use the preview option daily and this is causing me to spend more time opening and closing documents (especially pdf files). This is not good and Microsoft needs to fix it immediately. This is not a safety issue for me since I'm usually on a closed network and wouldn't open a file I'm not familiar with anyway.
Hear US Microsoft!!!! Turn this safety feature off in your next update since you are having them several times a week lately. Make it optional if someone needs it. Don't force it on all of us. I've tried clicking the unblock box on a pdf file and it still didn't work. I have thousands of files and can't spend the time to do this for everyone I need to access all day almost everyday.
Just uninstall this update: KB5066835 and it will work again.
I am having the same issues on Windows 10 and Windows 11
This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Is the removal of preview for documents with the mark of the web a mitigation for the rendershock exploit?
Hi! I just got the solution, just download the expernal file manager, ONE COMMANDER and it’s way much much better!! And it does preview pdfs but not ms office files though
Solution 1: Registry Edit (Recommended)
This procedure will configure Windows not to save zone information (Mark of the Web) for new file attachments.
⚠️ Warning: Editing the Registry incorrectly can cause system errors. Proceed with caution.
Press Win + R to open the Run dialog box.
Type regedit and press Enter. Click Yes if the User Account Control window appears.
Navigate to the following key in the Registry Editor:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies
Create a New Key:
Right-click on the Policies key, select New -> Key.
Name the new key __`Attachments`__.
__Create a New DWORD Value:__
Right-click on the newly created __`Attachments`__ key, select __New__ -> __DWORD (32-bit) Value__.
Name the new value __`SaveZoneInformation`__.
__Modify the Value:__
Double-click on __`SaveZoneInformation`__.
Ensure the __`Value data`__ is set to __`1`__.
Click __OK__.
__Close the Registry Editor__ and __Restart your computer__ to apply the changes.
After restarting, new PDF files downloaded or created should no longer trigger the preview error.
Solution 2: Disable via Group Policy Editor (Applies to Windows Pro/Enterprise only)
If you are using Windows Pro or Enterprise edition, you can achieve the same result through the Local Group Policy Editor:
Press Win + R, type gpedit.msc and press Enter.
Navigate to:
User Configuration
-> Administrative Templates
-> Windows Components
-> Attachment Manager
Find the setting "Do not preserve zone information in file attachments".
Double-click this setting and select Enabled.
Restart your computer to apply the changes.
Solution 1: Registry Edit (Recommended)
This procedure will configure Windows not to save zone information (Mark of the Web) for new file attachments.
⚠️ Warning: Editing the Registry incorrectly can cause system errors. Proceed with caution.
Press Win + R to open the Run dialog box.
Type __`regedit`__ and press __Enter__. Click __Yes__ if the User Account Control window appears.
Navigate to the following key in the Registry Editor:
```
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies
```
__Create a New Key:__
Right-click on the __`Policies`__ key, select __New__ -> __Key__.
Name the new key __`Attachments`__.
__Create a New DWORD Value:__
Right-click on the newly created __`Attachments`__ key, select __New__ -> __DWORD (32-bit) Value__.
Name the new value __`SaveZoneInformation`__.
__Modify the Value:__
Double-click on __`SaveZoneInformation`__.
Ensure the __`Value data`__ is set to __`1`__.
Click __OK__.
__Close the Registry Editor__ and __Restart your computer__ to apply the changes.
After restarting, new PDF files downloaded or created should no longer trigger the preview error.
Solution 2: Disable via Group Policy Editor (Applies to Windows Pro/Enterprise only)
If you are using Windows __Pro__ or __Enterprise__ edition, you can achieve the same result through the Local Group Policy Editor:
Press __Win + R__, type __`gpedit.msc`__ and press __Enter__.
Navigate to:
```
User Configuration
-> Administrative Templates -> Windows Components -> Attachment Manager ```
Find the setting __"Do not preserve zone information in file attachments"__.
Double-click this setting and select __Enabled__.
Click __Apply__ and __OK__.
__Restart your computer__ to apply the changes.
If you install PowerToys and activate .pdf in File Explorer add-ons, then uncheck the above in folder options, it should work
While I was aware that Windows flagged downloaded files as unsafe I had never heard the term MoTW. Whoever slipped Mark of the Web into Microsoft's metadata lexicon is a real Beast.
I ran into the same problem after the update, so I checked this feed. I'm not super into tech stuff (I didn't understand how to go about one of the answers here) but I tried clicking "Print to PDF" option while viewing the received PDF files online. I then saved it on my PC folder, closed the folder and reopened to see if it worked. Well, it did. I think the print-to-save as PDF option is bypassing any security feature that has been installed, and the system reads it as your "own" file.
Not in all files, check again please — I did that too, and yes it fixed most of them, but I still have the problem in some.
this worked for me (elevated ps), uninstalled recent update kb5066793, and restarted computer:
wusa /uninstall /kb:5066793
restart-computer
or also elevated ps, just recursively unblock a certain parent folder's pdf files (BUT, you'll have to redo that command with e.g. new downloads; but also note, you can just right click on any given file > properties, and at the bottom of the General tab, is the new security option, where you just check that "unblock" box):
gci c:\users\youHere\downloads -include *.pdf -recurse | unblock-file
I have the same problem and here is an interesting observation... Older pdf files dating from before about July 2022 preview without a problem.
use Alt+V+P at a time it enables preview pan
We have the same issue after the 25H2 Update.
After some troubleshooting we got around the issue by using the DNS (Server/Computer) name instead of the IP address. So instead \x.x.x.x\NetworkShare use \ServerName\NetworkShare instead. Hope this fixes the issue for you all as well.
I'm far from an expert, but the fix that @CrsJn provided above worked for me. I am now able to see previews of network files. The trick is to make sure you uncheck "Require server verification (https:)" before adding the local link. Then I just added file://**.myserver.mydomain
Can anyone comment as to if unchecking the Require server verification (https:) box adds much of a security risk?
Reverting to the previous install (not 25H2) reactivated the PDF display in Explorer. I figured that letting MS figure out the problem and fix it would be best. In the future I'll do a search to issues related to any upgrades before I initialize anything.
I've had the same problem and believe I've found a solution.
Open Adobe Acrobat
Go to menu
I hope this works for you.
Adding IPs to Internet Options - Trusted sites only works for files created by the same machine. Files received from others or downloaded from Internet are still getting blocked in the preview panel
Hi,
Adding the network location to the trusted locations as file:///Z:/... worked for me (you have to disable https requirement)
Yep uninstalled 25H2 updates and now Preview is operational. WTF Microsoft???
I rely on the Preview pane to scroll through literally hundreds of PFD drawings and other files to reference markups made. Suddenly I have to open those files individually, one by one, in a PDF viewer, and my workflow slows to a crawl. WTF????
Typically, selecting "Unblock" in the file properties will resolve the issue. However, if you need to process a large number of files, it is recommended to use the Streams tool provided in the link below. You will need to either search the instructions on how to use the stream tool and let AI guide you through it
https://learn.microsoft.com/en-us/sysinternals/downloads/streams
This tool can be used to remove all "Mark of the Web" tags from your files. Doing so should resolve your issue. Additionally, please consult with your system administrator to prevent these tags from being automatically reapplied through Group Policy in the future.
If you add the file location to the trusted sites tab in internet options, this fixes the issue. Use file://[file location]
This can also be added as a group policy to apply to all the PCs across a domain.
I uninstalled 25H2 and Preview worked for 5 minutes - then stopped working again, even for PDF's that I created myself on that system. WTF??
I ran the command Unblock-File -Path "C:\Users\admin\Documents\*.pdf" in PowerShell, and it only temporarily resolved the issue. When the user saves new PDF files, the problem comes back again.
I would like to request Microsoft to provide a permanent fix for this issue as soon as possible.
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
I tried this, but unless I missed something else, it turned off all of my previews, even the ones that I had "fixed" using the "unblock" trick that I described in a previous post.
You should try and check your "Trust Manager" within you Pdf Viewer / Software.
Once I edited or checked my settings, all was good and back to normal.
I also tried this - but it turned off ALL previewing of files (both local and on a network).
@Jeff N your suggestion worked for my system - none of the other suggestions (and I've been following this since Oct 16th) have worked for me.
Open Adobe Acrobat
Go to menu
UPDATE - Oct 24 - it worked until I restarted my laptop. Randomly, some PDFs are viewing, and others are still not. Wonky!
This is an INSANE situation. I am totally on board for all things security-oriented, but perhaps not this one which is so far-reaching. I am on a STANDALONE LAPTOP and NOT ON A NETWORK. I can't even guess how many PDF files I presently have. Yes, I can call up one document, go to properties, and unblock it. But, I can't select all of the PDF files in the folder and use properties to apply unblock to all of them. We'll be on 26H2 by the time I do them al one-by-one! I'm only managing personal files, so I can't imagine how people working remotely are able to overcome this disastrous change. I see there are some solutions in the comments below, so I will give them a try. But, we should not have to "apply a solution" each and every time a new PDF document shows up and is saved on a local drive. Isn't that why we already use Defender and/or other security software products?
I am not able to preview pdf files and everytime getting message - "The file you are attempting to preview could harm your computer." Please troubleshoot the problem
Below solution steps worked for me:
PreviewHandlers Registry Key, if yes then use below: Method 1) Fix: Recreate the Missing PreviewHandlers Registry Key
Step 1. Open Registry Editor
regedit, and press Enter.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer
PreviewHandlers
PreviewHandlers, create the following String Values (REG_SZ) — you can copy and paste both the names and values exactly:Name (Default Preview Handler)Value (CLSID)Microsoft Office Preview Handler{65235197-874B-4A07-BDC5-E65EA825B718}Microsoft Office Preview Handler{65235197-874B-4A07-BDC5-E65EA825B718}Microsoft PDF Preview Handler{DC6EFB56-9CFA-464D-8880-44885D7DC193}Microsoft Word Preview Handler{84F66100-FF7C-4fb4-B0C0-02CD7FB668FE}Microsoft Excel Preview Handler{00020827-0000-0000-C000-000000000046}Microsoft PowerPoint Preview Handler{65235197-874B-4A07-BDC5-E65EA825B718}Microsoft Outlook Mail Preview Handler{A776EDEF-81C0-4A3C-BE0A-46E36A9B8E2D}Text Preview Handler{1531d583-8375-4d3f-b5fb-d23bbd169f22}Image Preview Handler{FFE2A43C-56B9-4bf5-9A79-CC6D4285608A} (You don’t need all of them; adding the Text, PDF, and Image handlers is usually enough.)
It should look like below screenshot:
Step 4. Restart Explorer
Either reboot, or open Command Prompt and run:
taskkill /f /im explorer.exe
start explorer.exe
Then test your preview pane again. If it did not work, then use below solution as well:
I also used Mark Zuber's suggestion and used below method:
Method 2)
Automate It for Multiple Common Folders
If you want this to apply to multiple folders, use a script like this:
$folders = @(
"$env:USERPROFILE\Downloads",
"$env:USERPROFILE\Documents",
"$env:USERPROFILE\Desktop"
)
foreach ($folder in $folders) {
if (Test-Path $folder) {
Write-Host "Unblocking files in $folder..."
Get-ChildItem -Path $folder -Recurse -ErrorAction SilentlyContinue | Unblock-File
}
}
Write-Host "✅ All files have been unblocked successfully."
🔹 Save it as UnblockFiles.ps1, then run it once as Administrator (right-click → Run with PowerShell). This clears MOTW tags from typical folders where downloaded content lives.
I hope it will help everyone until Microsoft has a fix for it. The above may not be a proper solution, and may not work for everyone. But is a workaround for now and worked for me.
I reported this as a bug to Microsoft: https://learn.microsoft.com/en-us/windows-insider/feedback-hub/feedback-hub-app
I am also having this same issue since the update and nothing has worked. Oddly enough I can view pdfs created before the security update but not any 'newly created or downloaded' pdfs regardless of the files location. Beyond frustrating. I have spend way too long trying every fix listed in this forum to date and nothing has worked. We need a windows update to fix this - hello windows are you there?
J'ai le même problème mais sur Windows 10 ! Je pensais que cela venait d'Acrobat car quand je l'ai désinstallé et installé Fox It Reader à la place, mes aperçus fonctionnaient à nouveau jusqu'à ce que j'ai redémarré le PC. Depuis impossible de voir les aperçus PDF en grande taille. PAr contre Excel, Word et Jpeg fonctionnent.
This comment has been deleted due to a violation of our Code of Conduct. The comment was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
So as a temporary solution for just 1 or 2 files at a time, I have had to right click on the file - go to Properties of the file and then unblock, but this is time consuming to do for every file
I am finding today that 3D object files, such as .obj now have the same warning and no preview even though I created them on this PC.
I have to believe at this stage its a bug.
Nope not a bug, this is by design - read this and weep its permanent behaviour, Microsnot has decided we need protecting from ourselves
Respeito sua decisão, mas acho que vou aguardar uma atualização da MS.
I have the same problem, and for now its FIXED. You can follow this step:
https://allthings.how/fix-file-explorers-pdf-preview-warning-in-windows-11-25h2/
Hi
This is what I received from Microsoft support regarding this issue:
This is one of the security measures applied after the October KB.
Given that authentication occurs when connecting to the remote path to ask what files exist on the target, the mere listing of files in a remote path implicitly leaks the NTLM hash to that remote path
The issue in the MSRC hardened on and after 10B.25 is that File Explorer doesn't ask a previewer to preview the contents of a downloaded file, because there’s currently no way for a previewer to convey it understands the risk of leaking NTLM hashes to remote locations and does NOT do so when previewing untrusted files.
This change addresses a security vulnerability (MSRC 98973) where NTLM hash leakage could occur when users preview unsecure files (e.g., HTML/JS) in File Explorer. The issue arises when HTML tags such as <link>, <src>, or similar attributes reference external paths, enabling attackers to exploit preview functionality. Only way is to unblock those files to remove the mark of web or copy them to a trusted folder.
Workarounds: Remove the internet security block by adding the file shares address to the Local intranet or Trusted sites security zone.
Right-click -> Properties -> Check “Unblock”.
This workaround is publicly documented under “How can I override or unblock this behavior?" in the Frequently Asked questions section of Public KB5070960: File Explorer automatically
If you are confident in the safety of both the file and its source, you may remove the internet security block.
To remove the block for a downloaded file, right-click the file in File Explorer, select Properties, and then select Unblock.
Note: The change might not take effect immediately but will be effective after the next login.
To remove the block for files on an Internet Zone file share, use the Internet Options control panel’s Security tab to add the file share’s address to either the Local intranet or Trusted sites security zone.
Warning: This configuration change will relax the security posture for all files from the listed file share.
Br
Dan
Same issue here. It is so incredibly frustrating that Microsoft sees fit to create these roadblocks for us which decrease efficiency, and then fail to address the issue. I've tried every recommended fix, but the damnable preview block always turns itself back on no matter what I do. It does NOT make sense to force cloud users like myself to open EVERY SINGLE FILE EVERY SINGLE TIME if I need to read it. MICROSOFT PLEASE CORRECT THIS.
I send the PDF files as attachment to myself and when I save the files from my mail, windows consider them to be trusted and they can be seen in preview.
So instead of fixing the security whole, they just removed the ability to preview files. This was unbelievable short-sighted.
this was the worst update they made, I keep rolling back. I need to preview items, at least allow an option where we know the risks. some of these documents are documents I have made
I tried this, but Microsoft forces me to reinstall the update, If I don't my system acts hinky.
This deeply underthought error continues even from sites I have added to our 'Trusted Zone' - such as our cloud-based accounting and workflow applications. (Try finding one that isn't cloud-based these days.) 'Unblock'ing individual files also doesn't work, not immediately, not upon restarting Explorer, not even upon restarting the whole computer, and the option to Unblock is gone anyway once it's clicked once.
Our IT is managed outside our organisation, so I have no recourse for receiving updates or rolling them back. I cannot access PowerToys or PowerShell without their admin access.
Sack the dev team for this "security update".
So after running a script and waiting hours to unblock all of my files, only the preview pane was showing but the thumbnails were still the pdf icon. I googled "adobe thumbnail pdf" and I learned this.
"For Windows Explorer, you can enable PDF thumbnail previews by going to the Preferences in Acrobat or Acrobat Reader and checking the box for "Enable PDF thumbnail preview in Windows Explorer"."
I thought it can't be that easy, can it? So into Adobe I went. Menu>Preferences>General>Basic Tools. Checked the box that said "Enable PDF thumbnail previews in Windows Explorer". Thumbnails show in File Explorer now. It's been 5 days and it's still working.
guys use this method also for domain users and if you using files over netword drives
just add the path of Ip address of the netwrok drive where it says the website as described below and it will work
ust add the path where your files are saved.
Thanks Hisham, this worked for me! I had the Sharepoint already in my trusted sites with no joy, but today when I put in the specific path for where I keep my Xero invoice downloads, and tested a file saved into a subfolder of that, it worked!
Hi,
Did any of you notice a worsening of deployment speed since this issue about preview for pdf files?
I tried both solutions here (uninstall 25H2, and the powershell command). Neither worked.
The weird thing is some pdfs preview, others wont, in the same folder. Some incompetent security BS I guess.
MS + Adobe would have to be the worst combination
CAN FOR THE LOVE OF GOD TO GET A FIX FOR IT "MICOSOFT"? I PRINTED A FILE AS A PDF IN MY OWN COMPUTER AND CAN'T PREVIEW IT!
if there is share folder then open control panel then internet option, security and trusted sites and add your server ip address, then you can view the pdf file in folder (File explorer preview).
but if this is your personal computer then you need to open pdf file and save again on same location in your computer then you can preview in folder or go to file explorer options and open view and make sure option checked
" Show Preview Handlers in Preview Pane"
I ran into this today. For me, mapping or navigating to the hostname of the location worked. For example, in my situation, the user had a shortcut to the IP address share location (note this is just an example and not a real ip) \1.1.1.1\scans%username% changing the IP address to the hostname of the server \ActualHostName\scans%username% fixed the issue. For some reason using the IP address wouldn't allow the preview to work
THIS IS WHAT FINALLY WORKED FOR ME. MIND YOU I USE MY FIRM'S ONE-DRIVE BUT HAVE THE FILES ON MY HARD DRIVE. I THOUGHT I WOULD NEVER GET THIS FIXED - I TRULY WAS ABOUT TO LOSE MY MIND.
The Permanent Fix for "This file can't be previewed" Error on OneDrive-Synced PDFs
Many users have experienced a frustrating issue where PDF files synced via OneDrive display an error in the Windows File Explorer preview pane, even if the file is trusted and located on the local hard drive. This is caused by a security feature called "Mark of the Web" (MOTW) applied to internet-sourced files.
Standard fixes only "half-ass" the solution (e.g., manual unblocking, which gets old fast). The comprehensive solution involves two parts: a Group Policy change to prevent future issues and a PowerShell script to clean up existing files. This guide is especially useful for those in professional environments who rely on local OneDrive sync for offline work.
Part 1: Configure Group Policy to Trust the OneDrive Location (Prevents Future Blocks)
This step tells Windows to treat your specific local OneDrive folder as a trusted "Local Intranet" location, preventing new files from receiving the MOTW flag. You will need administrator privileges on your local PC to perform this action.
1. Open File Explorer and navigate to your main OneDrive sync folder (e.g., C:\Users\YourUserName\OneDrive - YourFirmName).
2. Click in the address bar at the top and copy the full path. Save this path somewhere handy.
1. Press the Windows Key + R to open the Run dialog box.
2. Type gpedit.msc and press Enter.
3. Note: If you are on a home edition of Windows, this tool might not be available. You would need to use a Registry Editor approach instead.
1. In the Group Policy Editor, navigate through the left-hand pane: User Configuration -> Administrative Templates -> Windows Components -> Internet Explorer -> Internet Control Panel -> Security Page
1. In the right-hand pane, double-click on the policy named "Site to Zone Assignment List".
2. Select the Enabled radio button.
3. Click the Show... button.
1. In the "Show Contents" box that appears, you will see two columns: "Value Name" and "Value".
2. In the first blank box under the Value Name column, paste your exact OneDrive path you copied earlier (e.g., C:\Users\YourUserName\OneDrive - YourFirmName).
3. In the blank box under the Value column (right next to the path), type the single digit 1.
4. (The value 1 assigns that path to the "Local Intranet Zone", which is treated as trusted by default).
1. Click OK in the "Show Contents" box.
2. Click Apply and then OK in the main policy window.
3. Restart your computer completely (Start Menu -> Power -> Restart). The policy will only take effect after a reboot.
Part 2: Use PowerShell to Unblock Existing Files (Clears the Backlog)
The policy change above only stops new files from being blocked. You still need to clean up all the older files you already synced. This PowerShell command automates the manual "Unblock" click for every single file in your folder.
1. Click the Start button and type powershell.
2. Right-click on "Windows PowerShell" and choose "Run as administrator".
1. Copy the command below. Make sure you replace the placeholder path with your actual path from Part 1, adding * to the end of your path to include all subfolders and files.
2. Paste it into the blue PowerShell window and press Enter:
powershell
Get-ChildItem -Path "C:\Users\YourUserName\OneDrive - YourFirmName*" -Recurse | Unblock-File
Use code with caution.
1. You might see a lot of file paths flash by in red or white text. Don't worry, this is normal and means it's working.
2. The script is finished when the blinking cursor returns after a prompt like PS C:\WINDOWS\system32>. This usually only takes a minute or two.
Conclusion
Once both steps are complete and the PowerShell script finishes, all your existing and future PDF files in that specific OneDrive location should preview instantly in File Explorer.
You've implemented a permanent, secure, and efficient fix that addresses all aspects of the "Mark of the Web" issue for local, synced cloud files. Hope this helps others with this annoying bug!
The Permanent Fix for "This file can't be previewed" Error on OneDrive-Synced PDFs
Many users have experienced a frustrating issue where PDF files synced via OneDrive display an error in the Windows File Explorer preview pane, even if the file is trusted and located on the local hard drive. This is caused by a security feature called "Mark of the Web" (MOTW) applied to internet-sourced files.
Standard fixes only "half-ass" the solution (e.g., manual unblocking, which gets old fast). The comprehensive solution involves two parts: a Group Policy change to prevent future issues and a PowerShell script to clean up existing files. This guide is especially useful for those in professional environments who rely on local OneDrive sync for offline work.
Part 1: Configure Group Policy to Trust the OneDrive Location (Prevents Future Blocks)
This step tells Windows to treat your specific local OneDrive folder as a trusted "Local Intranet" location, preventing new files from receiving the MOTW flag. You will need administrator privileges on your local PC to perform this action.
1. Open File Explorer and navigate to your main OneDrive sync folder (e.g., C:\Users\YourUserName\OneDrive - YourFirmName).
2. Click in the address bar at the top and copy the full path. Save this path somewhere handy.
1. Press the Windows Key + R to open the Run dialog box.
2. Type gpedit.msc and press Enter.
3. Note: If you are on a home edition of Windows, this tool might not be available. You would need to use a Registry Editor approach instead.
1. In the Group Policy Editor, navigate through the left-hand pane:
User Configuration -> Administrative Templates -> Windows Components -> Internet Explorer -> Internet Control Panel -> Security Page
1. In the right-hand pane, double-click on the policy named "Site to Zone Assignment List".
2. Select the Enabled radio button.
3. Click the Show... button.
1. In the "Show Contents" box that appears, you will see two columns: "Value Name" and "Value".
2. In the first blank box under the Value Name column, paste your exact OneDrive path you copied earlier (e.g., C:\Users\YourUserName\OneDrive - YourFirmName).
3. In the blank box under the Value column (right next to the path), type the single digit 1.
4. (The value 1 assigns that path to the "Local Intranet Zone", which is treated as trusted by default).
1. Click OK in the "Show Contents" box.
2. Click Apply and then OK in the main policy window.
3. Restart your computer completely (Start Menu -> Power -> Restart). The policy will only take effect after a reboot.
Part 2: Use PowerShell to Unblock Existing Files (Clears the Backlog)
The policy change above only stops new files from being blocked. You still need to clean up all the older files you already synced. This PowerShell command automates the manual "Unblock" click for every single file in your folder.
1. Click the Start button and type powershell.
2. Right-click on "Windows PowerShell" and choose "Run as administrator".
1. Copy the command below. Make sure you replace the placeholder path with your actual path from Part 1, adding * to the end of your path to include all subfolders and files.
2. Paste it into the blue PowerShell window and press Enter:
powershell
Get-ChildItem -Path "C:\Users\YourUserName\OneDrive - YourFirmName*" -Recurse | Unblock-File
Use code with caution.
1. You might see a lot of file paths flash by in red or white text. Don't worry, this is normal and means it's working.
2. The script is finished when the blinking cursor returns after a prompt like PS C:\WINDOWS\system32>. This usually only takes a minute or two.
Conclusion
Once both steps are complete and the PowerShell script finishes, all your existing and future PDF files in that specific OneDrive location should preview instantly in File Explorer.
You've implemented a permanent, secure, and efficient fix that addresses all aspects of the "Mark of the Web" issue for local, synced cloud files. Hope this helps others with this annoying bug!
Nothing in this thread resolves this issue and allows the preview to show. Removing the preview from the Folder Options is the opposite of the good result, just says "No preview available". Removing the older update from October is not an option in 25H2.
Apparently, they consider this an INTENTIONAL FEATURE to "protect" you, and not a problem.
https://support.microsoft.com/en-us/topic/file-explorer-automatically-disables-the-preview-feature-for-files-downloaded-from-the-internet-56d55920-6187-4aae-a4f6-102454ef61fb
Found a new work around for those pdf's that are emailed to me. When you click on the pdf and it opens (mine opens in Adobe) I clicked the "print" button/icon at the top and when the printer box popped up I chose "Print to Microsoft PDF" and named it what I wanted. When I opened Windows Explorer, the file that automatically downloaded into my download folder when I clicked on the attachment wouldn't preview, but the one that I had told to print as a Microsoft PDF did. This cut out a couple of the extra steps from my previous posts. It will work for now, I guess.
Unfortunately you have to click on properties for the file - General tab and click Unblock in the bottom Right Hand Corner. This will then show the preview. Not sure if anyone can write a cmd to overwrite all the pdf file security to UNBLOCK?
Hey Everyone
In Registry Editor (search regedit in taskbar), navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3.
Look for key 180F , double click on it and change its value to 0 (if present).
This solved the issue for our organization
Open File Explorer.
Select View (top menu) → Options → Change folder and search options.
Go to the View tab.
Ensure the following:
Preview pane is enabled
In File Explorer: View → Show → Preview pane
**“Always show icons, never thumbnails”** is **unchecked**
Click **Apply** and **OK**.
Close File Explorer and reopen it.
My IT dept advised against uninstalling the Windows update 25H2, being concerned that there were other things in the same update which I would be losing. Do we know if this update deals only with the preview issue? And what is the best way to uninstall a particular update. Thank you!
You could try to convert using AVS convert. Convert to either .doc OR .docx. I have done this to a few pdf's and it works for the most part.
I clicked here and all worked
I checked for the updates the other guys mentioned and i didnt have them. One user was on 24h2 and the other was on 25h2
For PDFs that you download from the Internet, to view them in Windows Explorer's preview pane, you right click on the PDF, click properties, then under attributes, check the unblock box. Most likely, you will have to restart Windows Explorer before the change takes effect.
To restart Windows Explorer, go to Task Manager, find an instance of Windows Explorer, right click on it, then click on restart.
MICROFLOP, RETARDED MOVES. THEY FORCE USERS TO OPEN THE FILE INSTEAD PREVIEWING IT.
After days trying to fix it - THANKS FOR NOTHING MICROSOFT - I believe I found the fix. It is working after a few restarts. Hopefully Microflop will not lock it again. Just for the records we are planning to switch from Windows to Linux all our 89 PCs due to time lost trying to make Windows 11 work like a business tool.
So try this;
open Powershell as admin
paste this:
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" -Name "180F" -Value 0 -Type DWord; Stop-Process -Name explorer -Force; Start-Process explorer.exe
Good luck as far as it lasts.
Change the .PDF file handler (also known as the Open With... option) from Acrobat to Chrome or Edge.
Or go to: Settings>Apps>Default Apps>Adobe Acrobat>.pdf
Click the "open" icon to the right and a list of choices will pop up. Choose a browser instead of Acrobat, and that's it. Preview Pane restored.
Within seconds of applying this new setting, my whole folder of PDFs became available with the Preview Panel.
This may be late for most. This is my 2nd time with this issue since October 2025. My windows 11 failed to boot after a windows update several months back. Once I got windows problem resolved, I realized the old PDF preview in Window Explorers problem had reared it's ugly head again. After trying many of the solutions offered up here, to no avail. I remembered I had saved the fix instructions. Preview is back up and running! :)
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!)
that option just stop preview from working at all for me, at least on win 11
This worked for me in Windows 11 Latest Developer preview. Thx!
It's entirely counterintuitive, but this also worked for me (Windows 10 22H2 with KB5066791). I do have PowerToys installed so perhaps disabling the builtin previewer allows PowerToys handler to work.
Worked for me too and I also have PowerToys installed.
Well done ! Works on Windows 11 pro 25h2 latest build 26200.7019
Wow - it works! Tried everything else suggested and this is the only thing that has worked. I was resigned to have to manually unlock every new file I added, but no need for this now. Many thanks! 👍
Finally, an answer that actually works! Thank you so much!
This is the best! Works for me!
Ony works with PowerToys installed as pointed by some colleagues above. But notice that only the first page of the PDFs can be seen this way. Better than nothing though.
This did not work at all for me. Thanks for sharing though.
THANK YOU!!! tried everything and it was this simple
This worked - however i needed to disable it and re-enable it.
THAT WORKED, and so simple! THANK YOU! :-)
100% worked for pdf - not sure about other files (word, excel etc.) - these aren't previewing atm for me also
Thank you tiwari sahab! may god bless you.
This worked for me! I use Soda not Adobe and it worked. Thank you for sharing such your answer and making the solution easy to understand!!
If you unclick that box, all you get is "No preview available". This does not help, because I need to see the preview. 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!
Only seems to work using the PowerToy feature but with Explorer's Preview toogled off, no other file types can be previewed like Excel or Word
At first, this didn't work for me (to disable preview in the Explorer). And, it does seem totally counterproductive.
BUT!
I saw another user who was helped who had PowerToys installed. I installed PowerTools and enabled PDF support for the "Preview pane" and "Thumbnail icon preview" in the settings for "File Explorer add-ons".
Now it did work! Letting PowerTools do the previewing circumvented the problem generated by the security update. At least that is what I think with the information on hand.
Thank you! this worked for me! ***note - I also have PowerToys installed.
The box was already checked. So I unchecked it, closed folder options, then reopened folder options and rechecked it and it worked. 11 Home, 25H2. Worked for little while but then stopped.
Changing the setting above did not enable the previewer for documents uploaded from third-party websites we work with. The only way to make them previewable is to go into properties and unblock each and every document... I tried to do a bulk unblock but could not figure out anything that worked. Prior to this update, documents were not blocked by default, unless the sender restricted access via password.
What I do when I have a group of imported PDFs all needing unblocking and too many to do individually, I compress them all into a zip file, then I extract that file, being sure when I extract that I do so to the parent folder, the one containing the ZIP file, not use the automatic extraction, which extracts the files to a folder by the same name as the ZIP file (so I would then have to cut and paste out of the extracted folder. More work.) I use WIN 11. I have daily downloads of 10-20 PDF files (scientific literature) from my university library.
I have Windows 10 and it did not work at all for me :(
Thank for this! For those not having any luck, here are all of the steps needed in order for this to work:
Thank you for this information. I am able to see all my pdf's again.
After days trying to fix it - THANKS FOR NOTHING MICROSOFT - I believe I found the fix. It is working after a few restarts. Hopefully Microflop will not lock it again. Just for the records we are planning to switch from Windows to Linux all our 89 PCs due to time lost trying to make Windows 11 work like a business tool.
So try this;
open Powershell as admin
paste this:
Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\3" -Name "180F" -Value 0 -Type DWord; Stop-Process -Name explorer -Force; Start-Process explorer.exe
Good luck as far as it lasts.
It worked !
Actually it worked before then stopped. Fingers crossed it will work for long time this time! Thank you
I found a solution
Control Panel -> Internet Options -> Security - > Trusted Site -> Sites
Add the IP address / Website of the shared files.
This only works for trusted sites. Those of us who store files locally don't have that option, it returns an error. I have multiple PDF files I created myself, stored on a local folder (not in OneDrive) and it won't preview. I feel like if I created it, I should be able to trust it.
Add trusted ip as 127.0.0.1 and the files you created will show preview
I can't see my download folder files either, but they are synced to OneDrive. Everything I have important syncs, because I work from two locations on three devices (four if you count my phone) so I hope this gets corrected quickly. Nothing that's been suggested here is working for me.
I did this and it worked great - for a day... Back to no preview :(
IP for 100s of files from all over the place?
This issue was fixed for me after I mapped the drive to the FQDN rather than just IP.
This worked for me. Go to Powershell and enter this text:
gci -recurse "c:\users\user\downloads" | Unblock-File
Replace the 'user' with your own name if that's in the folder path that you're trying to fix.
And to fix the preview problem in the main Documents folder, I used the same command text in Powershell and just replaced 'downloads' with 'documents':
gci -recurse "c:\users\user\documents" | Unblock-File
Having spent some time with Windows Explorer since the above fix, which works well for me, it looks like I will need to refresh this command in Powershell daily, as every new file that goes into the Downloads folder seems to suffer the same blocking fate.
This worked for me gci -recurse "c:\users\user\downloads" | Unblock-File on the local machine but noticed the network drive data doesn't work I removed the KB5066835 for now which has resolved all the issues
This worked for me, but I have to do it every day? Uggg Damn Microsoft!
Hi Jennifer, You can create automation for it using below instructions:
Step 1: Save Your PowerShell Script
Open Notepad and paste your script:
$folders = @(
"$env:USERPROFILE\Downloads",
"$env:USERPROFILE\Documents",
"$env:USERPROFILE\Desktop"
)
foreach ($folder in $folders) {
if (Test-Path $folder) {
Write-Host "Unblocking files in $folder..."
Get-ChildItem -Path $folder -Recurse -ErrorAction SilentlyContinue | Unblock-File
}
}
Write-Host "✅ All files have been unblocked successfully."
Save it as:
C:\Scripts\UnblockFiles.ps1
(Create the C:\Scripts folder if it doesn’t exist.)
Create a new text file, paste this code, and save it as:
C:\Scripts\Run-UnblockFiles.bat
@echo off
powershell.exe -ExecutionPolicy Bypass -NoProfile -WindowStyle Hidden -File "C:\Scripts\UnblockFiles.ps1"
exit
🔹 Explanation:
-ExecutionPolicy Bypass allows the script to run even if your system blocks unsigned scripts.
-WindowStyle Hidden makes it run silently (no PowerShell window flashing every 30 mins).
-NoProfile prevents loading unnecessary user modules.
Press Win + R, type taskschd.msc, press Enter.
Click Action → Create Task…
In the General tab:
Name: Unblock Files Automatically
Check **Run with highest privileges**
Configure for: **Windows 11**
Go to **Triggers** tab → **New…**
Begin the task: **On a schedule**
Set to **Daily**
Click **Repeat task every:** `30 minutes`
**For a duration of:** `1 day`
Enable it.
Go to **Actions** tab → **New…**
Action: **Start a program**
Program/script:
```yaml
C:\Scripts\Run-UnblockFiles.bat
```
Go to **Conditions** tab → uncheck **Start the task only if the computer is on AC power** (optional).
Click **OK** and enter your admin credentials if prompted.
Right-click your new task → Run.
Opening PowerShell manually and running:
Get-Item "C:\Users\<YourName>\Downloads\SomeFile.pdf" -Stream Zone.Identifier
→ if it returns nothing, the file is unblocked.
Hi,
I use Adobe Acrobat (Pro) to preview my files in explorer.
Go to Adobe > Preferences > Security (Enhanced) and deselect 'Enable Enhanced Security' - you should be able to preview your PDF's in explorer.
Not sure this is the right solution, but works for me. I need to preview documents for my work, no choice here since I updated to 25H2.
Use this solution at your own risk.
Regards
This is what worked for me. Thank you. Hopefully it doesn't affect other security features.
Unfortunately changing settings in Adobe did not enable preview of pdfs for me.
The annoying thing - these are pdfs I created. Microsoft has gone off the deep end.
I gave this a try as well, but it failed.
I'm trying the suggestions I see as they pop up (aside from un-installing 25H2 so far). If any of the other tweaks require re-starting my laptop, I would very much appreciate reading that in the text of the suggestion. Thank you.
Same issue here.
I managed to fix it on the local NTFS drive by running "Get-ChildItem -Path "C:" -Recurse | Unblock-File. But all our PCs are connected to an SMB server, mapped as a network drive in File Explorer, and that part I couldn’t solve.
So if any of you geniuses at Microsoft have an idea what you’re doing, hit me up 😅.
(In the end I ended up removing the update, which I don't like to do for obvious reasons.)
Edit:
✅ Solution for network drives 🌐:
Close File Explorer.
Open Internet Options from the Windows search bar.
Go to the Security tab.
Click Local Intranet.
Click Sites.
Check Automatically detect intranet network.
Click Advanced.
Uncheck Require server verification (https:) for all sites in this zone.
Add the path where your files are stored file://192.168.51.200/common
Restart File Explorer
✅ Solution for local NTFS drive 💽: Run Get-ChildItem -Path "C:\" -Recurse | Unblock-File in powershell, that will do the trick for the already existing files.
DONE
IMPORTANT
❗️❗️❗️Disabling "SaveZoneInformation" **is risky because it prevents Windows from marking files downloaded from the internet as potentially unsafe, removing SmartScreen warnings and making it much easier for malware to run without any security prompts.**❗️❗️❗️
This option did not work for me, but thank you for offering us another opportunity to fix Microsoft's mistake :)