Windows 11 may sometimes display the warning message “The file you are attempting to preview could harm your computer” when trying to open email attachments, preview documents, or access downloaded files in applications such as Outlook or File Explorer. In many cases, the file itself is safe, but Windows blocks the preview feature because it considers the file source potentially unsafe.
This warning is usually triggered by Protected View settings, Outlook attachment security policies, file origin metadata, antivirus restrictions, or blocked preview handlers. Sometimes files downloaded from the internet or received through email clients are automatically marked as unsafe by Windows security features.
In this guide, we’ll walk you through several effective methods to fix the “The file you are attempting to preview could harm your computer” warning on Windows 11.
How to Fix “The File You Are Attempting to Preview Could Harm Your Computer”
Before proceeding with advanced troubleshooting methods, make sure the file comes from a trusted source. Avoid bypassing Windows security protections for suspicious or unknown files. Follow the methods below in order for the best results.
1. Save the File Locally Before Opening
Opening the file directly from email previews may trigger the warning.
- Save the attachment to your PC first.
- Store it in a trusted folder such as:
Documents - Open the file from File Explorer instead of previewing it directly.
This often bypasses temporary preview restrictions.
2. Unblock the File
Windows may automatically block files downloaded from the internet.
- Right-click the file.
- Select:
Properties - Under the General tab, look for:
Unblock - Check the box if available.
- Click:
Apply > OK
After unblocking the file, try opening or previewing it again.
3. Disable Protected View in Outlook
Microsoft Outlook may block previews using Protected View.
- Open Outlook.
- Navigate to:
File > Options > Trust Center - Click:
Trust Center Settings - Open:
Protected View - Temporarily disable the relevant Protected View options.
- Restart Outlook.
Only disable these settings for trusted environments.
4. Enable Attachment Preview in Outlook
Attachment preview functionality may be disabled.
- Open Outlook.
- Go to:
File > Options > Trust Center - Select:
Attachment Handling - Ensure:
Turn off Attachment Previewis unchecked.
Restart Outlook afterward.
5. Repair Microsoft Office
Corrupted Office components may break preview handlers.
- Open:
Settings > Apps > Installed apps - Locate Microsoft Office or Microsoft 365.
- Click:
Modify - Choose:
- Quick Repair
- Online Repair
- Restart your PC afterward.
This repairs damaged preview components automatically.
6. Check Windows Defender or Antivirus Software
Security software may block file previews aggressively.
- Open Windows Security.
- Check:
Virus & threat protection - Review quarantine or blocked file notifications.
- Temporarily disable third-party antivirus software if necessary.
Do not disable security protection permanently.
7. Reset File Associations
Broken file associations may prevent preview handlers from working.
- Open:
Settings > Apps > Default apps - Search for the affected file type.
- Assign the correct default application.
Proper file associations are required for preview support.
8. Clear Outlook Temporary Files
Corrupted Outlook cache files may interfere with previews.
- Press:
Windows + R - Enter:
%localappdata%\Microsoft\Windows\INetCache\Content.Outlook
- Delete temporary files inside the folder.
- Restart Outlook.
This refreshes Outlook attachment cache data.
9. Update Microsoft Office and Windows
Outdated software may contain preview-related bugs.
Update Office
- Open an Office app.
- Navigate to:
File > Account - Click:
Update Options > Update Now
Update Windows
- Open:
Settings > Windows Update - Install all available updates.
- Restart your PC.
Updates often improve file handling and security compatibility.
10. Use Another PDF or Document Viewer
Sometimes the installed preview handler itself is faulty.
Try alternative viewers such as:
- Adobe Acrobat Reader
- Microsoft Edge
- SumatraPDF
Reinstalling the document viewer may also restore preview functionality.
Conclusion
The “The file you are attempting to preview could harm your computer” warning is usually caused by Protected View settings, blocked file metadata, antivirus restrictions, corrupted preview handlers, or Outlook security configurations. Fortunately, most users can resolve the issue using methods such as unblocking the file, adjusting Protected View settings, repairing Office, or clearing Outlook cache files.
By following the solutions outlined above, you should be able to restore normal file preview functionality safely on Windows 11.