Registry cannot be found, Outlook Security


New Member
Outlook version
Outlook 2019 64-bit
Email Account
Office 365 Exchange
I'm trying to access my outlook inbox message body via Python. However, it prompts me every time i make a call to it (to either allow to deny). The solution i found online was to edit the following registry.
I have outlook 2013 (so xx.0 should be 15.0). However, I am unable to find this key. There is no 15.0 under the Office key.
Is there somewhere else I should look? Or do you know another method by which I can access outlook message body via python?
I'm running windows 7 enterprise edition
NOTE: I don't have admin access on this computer as it is a work computer.

Diane Poremsky

Senior Member
Outlook version
Outlook 2016 32 bit
Email Account
Office 365 Exchange
If you have a valid and up-to-date antivirus, Outlook shouldn't bring up that dialog. File > Options > Trust Center - under Programmatic Access what does it say?


As for the key...
If the key does not exist, you need to add it - and since keys are not added to the policies path by default, you'll need to create the path.
However, your admin will need to make the change.


New Member
Outlook version
Outlook 2016 64 bit
Email Account
Office 365 Exchange
First, consider that the key may not be there because it doesn't need to be there. You don't have any policies currently, so there's no need for the keys. In other words, you'll need to create them.
Second, use ProcMon to watch your Outlook process and see exactly where it's looking for keys like this. You might need a SysWow64 somewhere in that path. Procmon's the quickest way to find out.
Finally, you should clarify which API you're using here. Likely choices are either Simple MAPI or the Outlook Object Model. If the latter, then the proper way to avoid security prompts is to keep you Antivirus up to date since that's what Outlook checks before deciding to prompt. If you're using the OOM and getting prompts, you should check the Trust Center in Outlook to see if what it says about Programmatic Access.
Hope this information helps you!