Change Outlook options via script

Hi everyone,

I am trying to write a script that changes the programmatic access options in outlook 2013 & 2016.
If you don't know what I am talking about see screenshot attached.
I would like to change it to "Never warn me about suspicious activity (not recommended)"

I don't have administrator rights, so I cannot change it myself.
I was wondering if a script would be able to do this without admin rights.

I have tried the below solution (renamed a .txt file as .reg), but It did not work as it does not allow me to change the registry.


Windows Registry Editor Version 5.00


[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\16.0\Outlook\Security]
"ObjectModelGuard"=dword:00000002

[HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Outlook\Security]
"PromptOOMSend"=dword:00000002
"AdminSecurityMode"=dword:00000003
"promptoomaddressinformationaccess"=dword:00000002
"promptoomaddressbookaccess"=dword:00000002


Please help!
spiga83Asked:
Who is Participating?
 
SeanConnect With a Mentor System EngineerCommented:
Yep cannot make changes to the machine without at least local admin rights.
0
 
SeanSystem EngineerCommented:
What do you mean it doesn't allow you to change the registry? Are you not an admin on the computer?

Seems like this would be a good use for a group policy rather than a script.
0
 
Alexei KuznetsovMicrosoft Outlook MVPCommented:
In order to be able to modify the HKEY_LOCAL_MACHINE subkeys, you need to have administrator's rights (import *.reg using the elevated command prompt).
0
 
spiga83Author Commented:
I don't have admin rights since it's a company's computer and it is locked down... But I thought vbscript could find a back door to the registry and update the value of that option. Just a guess... I don't actually know if that's possible.
0
 
Alexei KuznetsovMicrosoft Outlook MVPCommented:
No back doors here, sorry.
1
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.