Last reviewed on July 26, 2015   —  38 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

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

Note: 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.
Open Outlook using Run as administrator

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).

You'll need to restart Outlook for the changes to take effect.

Outlook 2016

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 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

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. After adding the keys ot the registry, you'll need to restart Outlook for the changes to take effect.

Outlook 2016 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.

Automation Security Tools

These tools will allow you to bypass the security settings.

Advanced Security for Outlook

Use Advanced Security for Outlook to learn what programs are trying to access Outlook and permanently allow or deny access to the program and the next time it requests access, the action you choose will be automatically executed and Outlook Security will not annoy you with messages about trying to access e-mail addresses you have stored in Outlook. Freeware, available in English, German and Russian. Advanced Security is fully compatible with Windows 8 (32-bit and 64-bit editions) and Microsoft Office 2013 (32-bit editions only). The programs button is available on the ribbon in Outlook 2010 and Outlook 2013.

ClickYes Pro

ClickYes Pro is a tuning tool for Microsoft Outlook security settings. It allows you to configure which applications can automatically send emails using Outlook and access email addresses stored in Outlook address book. ClickYes Pro runs as a background task providing a convenient icon in the taskbar notification area to manage allowed applications. It uses an encrypted storage and is highly secure and safe. Client and Server versions available. Works with Outlook 2000 - Outlook 2010.

CodeTwo Outlook WarningDoctor

CodeTwo Outlook WarningDoctor removes the security warnings that appear when sending mail or performing other actions recognized by Microsoft as a "risky" (for example, when you try to read some data using the Outlook or CDO API #. Especially useful for designers of macros, Visual Basic, and programmers of other scripting languages that use the object model.Outlook 2000 and up, including Outlook 2010 64bit.

Dkms's XP File splitter

Source code included. The SetAddressingPermissions procedure shows how to use SendKeys with Outlook security prompts.

Express ClickYes

Clicks the security dialog buttons automatically, but can be set to start in a suspended state. Developers can activate and suspend automatic clicking of the security dialogs programmatically. (HINT: Use &H2 instead of WM_CLOSE) Free.

Extended MAPI

Language for programming Outlook/Exchange with C++ or Delphi only.


Update added support for Outlook 2013. Version 5.5

Security Manager for Outlook

Security Manager for Microsoft Outlook is a one-line programming tool that allows you to bypass security settings and avoid security warnings, alerts or prompts in add-ins and applications that interact with Microsoft Outlook. Security Manager is developed for .NET, VCL and ActiveX platforms (VB.NET, C#, C++, Visual Basic 6, Delphi, VBA, Word MailMerge) and supports MS Outlook 2000, Outlook 2002 (XP), Outlook 2003, Outlook 2007 and Outlook 2010 with / without service packs.


  1. zengmin says

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

  2. Clive says

    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.

    • Diane Poremsky says

      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.

  3. Clive says

    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 says

    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. Vowani says

    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.

  6. John says

    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

  7. Vikas says


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

    Please let me know.

    Thanks in advance.


  8. Prashant says

    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.

  9. anzoth says

    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?

  10. Anonymous says

    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.

    • Diane Poremsky says

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

  11. Eduardo Fernandez says

    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

  12. Eduardo Fernández says

    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.

  13. elouise says

    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,

    • Diane Poremsky says

      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.

    • Mike says

      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.

  14. Sean K says

    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.

    • Jimbus says

      Sean K's solution worked for me.. Not sure why that one method of running as an administrator is different from another, but it is.

Leave a Reply

Please post long or more complicated questions at OutlookForums by

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