• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

Disable Protected View for Outlook Attachments

Slipstick Systems

› Outlook › Disable Protected View for Outlook Attachments

Last reviewed on January 14, 2019     25 Comments

Applies to: Outlook (classic), Outlook 2010

Protected view is a new security feature for all Office documents which arrive in email or are downloaded from Internet sources. This is a security sandbox used by Office 2010 to enhance attachment security. Administrators will be able to control whether all email attachments or only those from outside their Exchange network use Protected view.

How it works: When an emailed (or downloaded) document is opened, a red band appears at the top of the document to alert the user that the document is in protected view and cannot be edited. If the user trusts the document, they click the Enable editing button to begin editing. All attachments are read-only.

When a document that was previously attached to an email (or downloaded from the Internet) is opened, the red message bar states "This file originated as an email attachment " or "This file was downloaded from the Internet". The application knows this because Windows uses the Attachment Execution Service to place a zone identifier in an alternate data stream of the file which indicates it was downloaded from the Internet Zone. When Word, Excel, or PowerPoint opens the file and sees this marker it knows to open the file within Protected View and the user sees the red bar.

This setting opens all Office documents in a read-only state and you need to click a button before you can edit the document. (To save the document, you'll need to use Save as - see "Edit and Save Outlook's Read-Only Attachments" if you want to save documents back to the email message.)

protected view information bar warning
To change the Protected view setting, you need to make the change in each Office application.

Go to the File, Options Trust Center dialog and select Protected View. Disable the option to enable it for Outlook attachments. (You may also want to disable it for files originating from the Internet.)
Disable Protected view

Once you do this, you'll get the Open/Save dialog, which can be disabled by editing the registry. The instructions to do this are below.
Open Save dialog warning

Disable the Open Save dialog

Note: I recommend making this change only for the document types you open often.

In each of the following keys, add or edit the EditFlags binary value so the value is 00 00 01 00

HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Excel.Sheet.12
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PowerPoint.Show.12
HKEY_LOCAL_MACHINE\SOFTWARE\Classes\Word.Document.12

Or use our prepared reg file that sets the EditFlags value for Word (docx, doc), Excel (xlxs, xls) and Powerpoint (ppts, ppt) files.
EditFlags for Word, Excel, and Powerpoint

For more information, see Restore (or Hide) the Open Save Dialog

How to disable Protected view

[wpvideo 5pWCcYB5 w=600]

More Information

  • Restore (or Hide) the Open Save Dialog
  • Outlook 2010 & Read-Only Attachments
  • Protected View in Office 2010 (Office team blog)
Disable Protected View for Outlook Attachments was last modified: January 14th, 2019 by Diane Poremsky

Related Posts:

  • How to check your Macro and Protected View Settings
  • Block Macros in Office 2013/2016
  • Outlook and the latest RTF Exploits
  • Don’t be fooled by unexpected attachments!

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Subscribe
Notify of
25 Comments
newest
oldest most voted
Inline Feedbacks
View all comments

James Martin (@guest_219092)
January 18, 2022 3:26 pm
#219092

As a test I did the Macro X in Excel, it works, and possibly the References are better for me as the ScreenUpdating is not lowercase:

Sub ExcelFileClose()

'SOURCE: james.martin@birmingham.gov.uk jam61mar@gmail.com
'May be simpler vba to do this but I could not work out other methods, this works.

Dim ProtectedViewWindow
Application.ScreenUpdating = False

If Excel.Application.ProtectedViewWindows.Count >= 0 Then GoTo Normal
       
'this formula counts open and recent (viewable via right clicking on WordApp in Taskbar).
Protected: If Excel.Application.Workbooks.Count >= 0 Then GoTo NoDoc
       
NoDoc:   If Excel.Application.ProtectedViewWindows.Count = 0 Then
      Exit Sub
      End If
       
      Excel.Application.ActiveProtectedViewWindow.Edit
      Excel.ActiveWorkbook.Close
      Exit Sub
         
Normal:   On Error GoTo Protected
      Excel.ActiveWorkbook.Close
      Exit Sub

Application.ScreenUpdating = False
End Sub

0
0
Reply
James Martin (@guest_219091)
January 18, 2022 3:17 pm
#219091

Couldn't add to my first reply just now:

Sub WordFileClose()
Word.Application.screenupdating = False

'SOURCE: jam61mar@gmail.com
'May be simpler vba to do this but I could not work out other methods, this works.

Dim ProtectedViewWindow

If Word.Application.ProtectedViewWindows.Count >= 0 Then GoTo Normal

'this formula counts open and recent (viewable via right clicking on WordApp in Taskbar).
Protected: If Word.Application.Documents.Count >= 0 Then GoTo NoDoc
       
NoDoc:   If Word.Application.ProtectedViewWindows.Count = 0 Then
      Exit Sub
      End If
       
      Word.ActiveProtectedViewWindow.Edit
      Word.ActiveDocument.Close
      Exit Sub
         
Normal:   On Error GoTo Protected
      Word.ActiveDocument.Close
      Exit Sub

Word.Application.screenupdating = True
End Sub

0
0
Reply
James Martin (@guest_219090)
January 18, 2022 3:16 pm
#219090

I resolved Protected View in a simple macro which I call Macro X for Word. I have the "X" symbol on the Quick Access Toolbar. Basically I resolved multiple Word Apps in your Slipstick Macro to save an Outlook Item to docx (followed the changes to the pdf version and to add the email header). and your save attachments to a temp folder. I use another macro from another site to import the images to the active docx. Basically I don't want to close down Active Word App with the right hand top corner X. as this drains the computer and you can get multiple Apps open. So I wanted to replace Word>>> File >>>Close with a single click on the QAT. The macro is straight forward for a normal word or rtf file that is active. The code to do nothing if accidently pressed if no file is open in the Word App is also not too difficult. But with Protected documents that we download from a client online browser database, to check, the macro did not recognise a word file. So I had to make it editable before closing. Unfortunately the active window can not be counted definitively… Read more »

0
0
Reply
Dan Mortenson (@guest_207586)
July 7, 2017 5:48 pm
#207586

Have a new install of Office 2016 on a small office, one user is fine, the other user is getting
"Word experienced an error trying to open the file.."
I have turned off protected view and repaired Office but the error persists.
It was an upgrade from Office 2007.
This error occurs outside of Outlook if the attachment is saved locally.

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Dan Mortenson
July 15, 2017 10:00 am
#207715

Did you right click on the file and select properties then click unblock? This is a security feature for attachments from outside sources.

0
0
Reply
susan (@guest_207390)
June 27, 2017 10:38 am
#207390

Hi. I keep getting this message
Outlook blocked access to the following potentially unsafe attachment. I have received .xls files from this email address for over 10 years, but it will not let me open them, what do I need to do?

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  susan
June 28, 2017 12:29 am
#207398

That sounds like the new security patch from June 13 broke it. Did you ever set a lwvel1remove key for that file type? The patch is ignoring the key - it should be fixed in the updates coming out this week. (That key is not needed for xls files.)
https://www.slipstick.com/outlook/updates/outlooks-june-13-2017-security-update/
https://support.office.com/en-us/article/Outlook-known-issues-in-the-June-2017-security-updates-3f6dbffd-8505-492d-b19f-b3b89369ed9b

0
0
Reply
Mark Cabaneiro (@guest_204560)
February 13, 2017 2:19 pm
#204560

already disabled the protective view settings and my excel still hanging....what should i do?

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Mark Cabaneiro
February 14, 2017 12:31 am
#204580

What addins do you have installed? Does Excel hang other times?

0
0
Reply
Tinus (@guest_199513)
June 20, 2016 2:07 pm
#199513

Protected view option missing in OUTLOOK. How can this be fixed. I cannot open any attachment from in outlook.

0
0
Reply
Diane Poremsky(@diane-poremsky)
Author
Reply to  Tinus
June 21, 2016 12:46 pm
#199537

That option is set within each office app and applies to their file types. Are all attachments affected, word, psf, excel, jpg, etc? It's unlikely to be protected view if pdf and images are also affected.

Any error messages?

0
0
Reply
D Gott (@guest_191977)
July 18, 2015 1:02 am
#191977

my problem is that I cant receive an excel file which has a pass word on it. I get the following warning. “The original message contained a virus. The virus has been cleaned. You may want to notify the sender of the virus.” but we had received the same document earlier without problems when it contained no pass word.

0
0
Reply

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 30 Issue 19

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Jetpack plugin with Stats module needs to be enabled.
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
  • Import EML Files into New Outlook
  • Opening PST files in New Outlook
  • New Outlook: Show To, CC, BCC in Replies
  • Insert Word Document into Email using VBA
  • Delete Empty Folders using PowerShell
  • Warn Before Deleting a Contact
  • Classic Outlook is NOT Going Away in 2026
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Import EML Files into New Outlook

Opening PST files in New Outlook

New Outlook: Show To, CC, BCC in Replies

Insert Word Document into Email using VBA

Delete Empty Folders using PowerShell

Warn Before Deleting a Contact

Classic Outlook is NOT Going Away in 2026

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2025 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.

wpDiscuz

Sign up for Exchange Messaging Outlook

Our weekly Outlook & Exchange newsletter (bi-weekly during the summer)






Please note: If you subscribed to Exchange Messaging Outlook before August 2019, please re-subscribe.

Never see this message again.

You are going to send email to

Move Comment