Microsoft has made security restricted access to outlook , This can be a pain when dealing with sending emails from a program accessing outlook for example.
I have found that the easiest way is to modify/create registry key to allow programmatic access. This method is working on terminal servers as well – require reboot though.
You should be aware that this setting open outlook to risks and exploits. therefor you should consider additional protection like antivirus or other restriction .
Outlook 2016
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Outlook\Security 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.
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\16.0\outlook\security DWORD: PromptOOMSend Value: 2 DWORD: AdminSecurityMode Value: 3 DWORD: promptoomaddressinformationaccess Value: 2 DWORD: promptoomaddressbookaccess Value: 2
Outlook 2013
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\Outlook\Security 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.
HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\15.0\outlook\security DWORD: PromptOOMSend Value: 2 DWORD: AdminSecurityMode Value: 3 DWORD: promptoomaddressinformationaccess Value: 2 DWORD: promptoomaddressbookaccess Value: 2
Outlook 2010
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\14.0\Outlook\Security DWORD: ObjectModelGuard Value: 2 HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\14.0\outlook\security DWORD: PromptOOMSend Value: 2 DWORD: AdminSecurityMode Value: 3 DWORD: promptoomaddressinformationaccess Value: 2 DWORD: promptoomaddressbookaccess Value: 2
Ready made reg files (just download extract and import to registry)
Outlook 2016 Outlook 2013 Outlook 2010
MOre information can be found here :
I tried this on a office365 install with Win7 and it didn’t change the programmatic settings at all.
Office 365 has no support working on windows 7