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?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
SeanSystem EngineerCommented:
Yep cannot make changes to the machine without at least local admin rights.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.