Back around October, apparently a security update broke the preview function in Windows Explorer for Windows 7, 10, and 11. I fixed this on my Win10 laptop but don't recall now what all I did. I'm about to dig into this for Windows 7 now. Anyone have a handy method or source to fix this in batch fashion, both for new and existing downloaded PDFs?
ETA: I found this PowerShell command to unblock all files within the target folder:
Set-Location -Path "<folder path>"
Get-ChildItem -File -Recurse | Unblock-File
Replace <folder path> with the folder path (e.g. D:\my folders\targetfolder). Requires PowerShell 3.0 or higher for the Unblock-File command. I used 3.0.
ETA: I found this PowerShell command to unblock all files within the target folder:
Set-Location -Path "<folder path>"
Get-ChildItem -File -Recurse | Unblock-File
Replace <folder path> with the folder path (e.g. D:\my folders\targetfolder). Requires PowerShell 3.0 or higher for the Unblock-File command. I used 3.0.
Last edited:
My Computer
At a glance
Windows 7 Pro x64Intel i7 6th Gen16GB
- Computer type
- PC/Desktop
- Computer Manufacturer/Model Number
- custom
- OS
- Windows 7 Pro x64
- CPU
- Intel i7 6th Gen
- Motherboard
- Asus Z170e
- Memory
- 16GB
- Antivirus
- Eset NOD32
- Browser
- Firefox