Home » How-To » How to Fix The File You Are Attempting To Preview Could Harm Your Computer in Windows 11

How to Fix The File You Are Attempting To Preview Could Harm Your Computer in Windows 11

The error, “The file you are attempting to preview could harm your computer”, is a security measure.

It’s displayed when Windows cannot verify the file’s safety before rendering a preview.

It typically appears for PDFs, executable files (.exe), or compressed archives (.zip, .rar).

However, the error message might be a bug/glitch caused by a Windows update.

In this guide, you’ll learn how to fix “The file you are attempting to preview could harm your computer” in Windows 11 (PDF).

How to Fix The File You Are Attempting To Preview Could Harm Your Computer in Windows 11

Here’s how to fix “The file you are attempting to preview could harm your computer” in Windows 11:

  1. Search for “Windows PowerShell” using Windows Search.
  2. Right-click “Windows PowerShell” and select “Run as Administrator”.
  3. Type this code and press enter (to identify the path of your downloads folder):
    • $home
  4. Type this code and press enter (replace the “…” with the downloads folder path):
    • Unblock-File -Path “C:\Users\…\Downloads\*.pdf”
  5. Search for “run” using Windows Search and press enter.
  6. Type “regedit” and select “OK”.
  7. Navigate to this folder:
    • Computer > HKEY_CURRENT_USER > Software > Microsoft > Windows > CurrentVersion > Policies.
  8. Right-click anywhere on the right, select “New”, and select “Key”.
  9. Rename the folder to “Attachments”.
  10. Right-click anywhere on the right, select “New”, and select “DWORD (32-bit) Value”.
  11. Rename the DWORD to “SaveZoneInformation”.
  12. Right-click “SaveZoneInformation” and select “Modify…”.
  13. Set the “Value data” to “1” and select “OK”.
  14. Try previewing the file again.

Further reading

How to Enable or Disable Variable Refresh Rate (VRR) on Windows 11

How to Fix “Windows protected your PC” Pop Up

How to Fix “Warning! To prevent potential data loss please backup your local Minecraft for Windows worlds”

About the author

Lim How Wei

Lim How Wei is the founder of followchain.org, with 9+ years of experience in Social Media Marketing and 5+ years of experience as an active investor in stocks and cryptocurrencies. He has researched, tested, and written thousands of articles ranging from social media platforms to messaging apps.

Lim has been quoted and referenced by major publications and media companies like WikiHow, Fast Company, HuffPost, Vice, New York Post, The Conversation, and many others (source: link profile). One of his articles about the gig economy was quoted by Joe Rogan, who hosts The Joe Rogan Experience (arguably the most popular podcast in the world), in the This Past Weekend podcast by Theo Von.

In his free time, Lim uploads personal finance videos on his YouTube channel, Lim Finance, to guide others on their financial journey. He also creates gaming guides, walkthroughs, solutions, and tips for the games he plays, helping players with their progression.