Change Outlook's Programmatic Access Options

Last reviewed on October 3, 2013   —  37 comments

Please note that the advice on this page reduces Outlook's security level and could leave you open to an exploit that takes over Outlook and sends mail on your behalf. We highly recommend you use up-to-date antivirus software that Outlook can detect and leave these settings alone.

But, when all else fails... there is a way to disable the programmatic access warning in Outlook 2007 and up.

How can I change the programmatic access options. They are greyed out and I cannot change them. I have an application that sends email out. I have to click on the allow/deny for each email. I want to be able to turn this off and on so I can avoid this message.

Programmatic Access options are disabled

These settings are only enabled if the current user is an administrator on the computer. Non-administrator users can see the current setting but will not be able to change it. Programmatic Access settings can also be controlled through Group Policy.

Run Outlook as Administrator

Open Outlook using Run as administratorNote: To change the Programmatic Access setting in Outlook's Trust Center, you need to run Outlook as an Administrator. You only need run as administrator one time, and once you make the change it will be in effect for all Outlook profiles on the computer.

To do this in Windows 7 and older, right click on the Outlook shortcut and choose Run as Administrator from the menu. If you don't see Run as Administrator listed as an option, hold Ctrl+Shift as you right click on the Outlook shortcut.

If using Windows 8's Start screen, right click and choose Run as Administrator from the taskbar. When Outlook is pinned to the desktop Taskbar, hold Ctrl+Shift and right click on the Taskbar icon.

After Outlook loads, go to Tools, Trust Center (Outlook 2007) or File, Options, Trust Center (Outlook 2010 and up) and change the Programmatic Access setting.

The next time you re-start Outlook, start it in "normal" mode.

Edit the programmatic access settings

Edit the Registry

If you prefer to edit the registry instead, you need to add the following key to the registry (create the key if it doesn't exist).

Outlook 2013

DWORD: ObjectModelGuard
Value: 2

You can also set the keys below. As always, if the keys don't exist in the registry, you'll need to create them.

DWORD: PromptOOMSend
Value: 2
DWORD: AdminSecurityMode
Value: 3

Outlook 2010

DWORD: ObjectModelGuard
Value: 2

You can also set the keys below. As always, if the keys don't exist in the registry, you'll need to create them.

DWORD: PromptOOMSend
Value: 2
DWORD: AdminSecurityMode
Value: 3

Outlook 2007
If you are using Outlook 2007, the keys are as follows.

DWORD: ObjectModelGuard
Value: 2

DWORD: PromptOOMSend
Value: 2
DWORD: AdminSecurityMode
Value: 3

Do It For Me

If you don't want to use Run as Administrator or Edit the registry, we have the following registry files you can download and run. These files set the values in both keys.

Double click to run the registry file.

Outlook 2013 Outlook 2010 Outlook 2007

Note that you may need to right click and use Save as (or Save Link as in Firefox) - make sure the file extension is .reg.

About Diane Poremsky

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.

Please post long or more complicated questions at Outlook forums by

37 responses to “Change Outlook's Programmatic Access Options”

  1. zengmin

    I,m using the outlook 2007, I have done as you have told , but the Programmatic Access Options is still unenable

  2. Clive

    Our company uses an accounting package which has a function that emails monthly statements - However, Outlook asks for permission to send each and every individual email, requiring the user to sit and click "allow" hundreds of times. I have tried the above-mentioned recommendations, but no joy...

    Windows 7 - latest update
    Outlook 2007 - latest update
    Accounting package - MYOB premier

    Server -
    SBS 2011

    Logged into the workstation as administrator.
    The programatic access option in Trust Centre is available - I have selected the 3rd option.
    I have run the registry files you provide.
    Rebooted the workstation.

    Is there something on SBS that could be overiding the settings?

    Any advice or info would be greatly appreciated. Thanks in advance.

    1. Diane Poremsky

      It's possible that the SBS server is configured to force the approval (using GPO). Outlook 2007 and up should allow access if two conditions are met: you have valid AV and the 3rd party software is written properly.

      In your registry, are there any keys under HKEY_CURRENT_USERSoftwarePoliciesMicrosoftOffice12.0outlook ? If a policy is in force, it would be under the policies key.

      ClickYes, the Mapilab or codetwo utilities should be able to bypass the dialog. Links to all 3 are here.

    2. Diane Poremsky

      BTW, the admin could also block it using a form in a public folder.
      MSDN info on Outlook security

  3. Clive

    Thanks for the quick response Diane.

    I installed ClickYes Pro and it works seamlessly. Absolutely brilliant! I cant believe how much time i wasted on this when an application was readily available for purchase.

    Again, thanks!

  4. David

    Hi Diane,

    The systems admin and myself have tried turning off the warnings via Outlook, Public Folders Security, Group Policy and registry edits (including the ones you listed above) and we still get the warning coming up.

    Our environment is Windows 7 and Outlook 2010 (also happened on XP running Outlook 2010) - running as a user or local admin

    We're at a loss as to why it is still happening, so any advice or URL's (maybe a windows KB article that's hidden away somewhere) would be great.

    Trying to find an option that wont require the purchase of third party software if we can help it...

    kind regards,


  5. HS

    Thanks for the registry fix. Worked like a charm. :)

  6. OARS

    We tried the registry changes and they didn't make a difference. But, we did find the following software (in Polish) that DOES work!

    Outlook Warning Doctor from Code Two:

  7. Vowani

    These warnings started popping up on my system after installing a utility which synchronizes my Outlook Contacts with Google Contacts.

    Fortunately, I found a safe way to eliminate the warnings from Outlook, while keeping it protected from malware. It turned out the warnings wre not caused by that utility itself. They occured because Outlook, for some reason, was not (yet) recognizing my anti-virus program as valid.

    Here's how I solved it.

    1) Open Outlook 2010, go to "File/Options/Trust Center" menu item, and then click on the "Trust Center Settings" button at the right side of the dialog box.

    2) From there, select the "Programmatic Access" menu item. At the bottom of this dialog, note what your "Antivirus status" is. If it is "Invalid" then close Outlook, navigate to where its "OUTLOOK" program icon is on your disk (typically it sits in the "Program Files (x86)/Microsoft Office" folder), and then right-click this icon and select "Run as administrator" from the pop-up-menu. If you get a warning, then select "allow" or "yes" to continue.

    3) Then in Outlook, go back to Programmatic Access as described above, and you should see your antivirus status updated to "valid" (assuming you have an up-to-date antivirus program on your computer).

    4) Exit Outlook. Then open it the way you usually do. The warnings should now be gone.

    This way, your Outlook application will be protected from malware, and you should no longer see warnings when other applications try to access Outlook.

  8. John

    If its on 2008, go to c:\Program Files (x86)\Microsoft Office\Office12\OUTLOOK.EXE, right click on outlook.exe and click Runas Adminstrator.. then you change the settings in Trust centre.. it worked for me

  9. Vikas


    Can we set password for outlook rules and alert settings???

    Please let me know.

    Thanks in advance.


    1. Diane Poremsky

      No, sorry, you can't password that dialog. You can disable the button using group policy - I even have the code for Rules & Alerts listed there.

  10. Adev

    Excellent thx it worked very well for me.

  11. Prashant

    Hi, I have tried suggested option. (Run As Administrator and change the options to "Never Warn me...". But when I am running as normal user, still the change is not applied, and it is disable for me and it is not allowing to change any option in it.

    OS: Windows 7 Professional
    Outlook: Office 2007

    looking forward for solution for this.

    Thank you in advance.

    1. Diane Poremsky

      Is this a work computer? The admin may have a policy in effect.

  12. bjosephs

    Thanks - that did the trick!

  13. anzoth

    Hi, I'm running Office 2010 and Avast Free Antivirus. The suggested option did not work for me. It is not a work computer (no admin policies). Any suggestions?

  14. Lloyd

    worked a treat. thanks!

  15. Anonymous

    How is this done in Outlook 2013? I am not even seeing a "Run As Administrator" option when I right click my Outlook 2013 icon and the registry key used in Outlook 2010 appears to not exist in Outlook 2013.

    1. Diane Poremsky

      Are you one the Start Screen? Run as admin is on the bottom bar.

    2. Diane Poremsky

      The key is the same, but the version number is 15. I updated the registry files to include Outlook 2013.

  16. Eduardo Fernandez

    Hey Diane, I really appreciate this post but didn't work for me. I already got the final solution for this and it's working for all Outlook versions.

    You will need to add 3 new reg in the following REGEDIT path:

    HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\(Your outlook version)\Outlook\Security

    Inside Security you must add or modify :
    o PromptSimpleMAPISend
    o PromptSimpleMAPINameResolve
    o PromptSimpleMAPIOpenMessage

    All of them must are DWORD and have value 2 hex.

    After this you must check the following path :

    HKEY_LOCAL_MACHINE/SOFTWARE /Microsoft/Office/(here you choose your outlook version)/Outlook/Security

    IF the path doesn't exist then create it.

    Inside security must be a DWORD named "ObjectModelGuard" with value 2 hex.

    then restart and try again if the problem persists.

    I have tried this on W.XP & W7.

    Best Regards,

    Eduardo Fernández

    1. Thompson

      Awesome, Thanks Eduardo, after entering those additional keys it worked like a charm for me.

  17. paul

    I down loaded the click yes pro- was the fix

    thanx all

  18. Eduardo Fernández

    The bad thing about click yes pro is that If you develop a massive email software sender, the yes click software consumes A LOT of memory and it will click yes for all the responses you will have, imagine if its 1000 mails.

  19. Matei

    thanx man...great info...It was so useful

  20. Jason

    Hi does this actually work well, to send bulk email to clientele?

    1. Diane Poremsky

      Do you mean does Outlook work for bulk mail? Yes, you can use it.

  21. elouise

    Good morning,
    I need advice on the following:

    I am sending out Email mail mergers as attachments. Each attachment is personalized. This I can do.

    My problem is I need the attachment to be a pdf attachment and I need to include a message in the body of the email.

    Is this possible in Outlook 2013?

    Kind Regards,

    1. Diane Poremsky

      I don't think it's possible, at least not right out of the box. You'd need to use a program or a macro to do it.

  22. Elouise

    Thanks I found "mail merge toolkit" which works wonderfully.

    1. Priya

      Can you please share the link to the toolkit?

    2. Diane Poremsky

      That would be the utility from MAPIlab

  23. Mike

    Sorry this is NOT working for Windows 7 and Outlook 2007 with latest patches.

    1. Diane Poremsky

      Did you restart Outlook?

    2. Mike

      YES, i had to choose the Local Machine Hive (not user hive) under:


      then just set ObjectModelGuard to 2.

      All other values you used above were not needed.

      I have WIN7 + Office 2007.

      After restarting it worked.

  24. Sean K

    I tried several of these options. The one that I got to work was to switch the icon that runs Outlook to "run this program as administrator" under properties->compatibility.
    Adding user to administrators group did not work. Running the outlook.exe as administrator did not work (as it tried to login as administrator on a domain) and adding the keys to the registry manually did not work.

Leave a Reply

If the Post Comment button disappears, press your Tab key.

This site uses XenWord.