Link to home
Start Free TrialLog in
Avatar of chestera
chestera

asked on

MS office Trusted location Batch file

Hi EE

I have this batch file but doesn't seem to work.

Batch file content:

Additional Registry Keys:
Root = Current User
Key = Software\Microsoft\Office\14.0\Access\Security\Trusted Locations\WORKDB
Name = C:\CIAgentSolutions\
Value = C:\CIAgentSolutions\workdb

I am sure I have used this before and it worked
Avatar of DrTribos
DrTribos
Flag of Australia image

Run with elevated privileges?
ASKER CERTIFIED SOLUTION
Avatar of ncomper
ncomper

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chestera
chestera

ASKER

ncomper

I am running as a batch file

HKEY_CURRENT_USER
Software\Microsoft\Office\15.0\Access\Security\Trusted Locations\Location0
C:\EPMS
REG_SZ
C\mt_Accde

I am doing something wrong because it's not working. Your help appreciated

Alan
DrTribos

Run with elevated privileges?

You have got me there, haven't come across the term

Alan
To allow a bat file to run as elevated you will need to kick this off as a startup script linked to the computer account (Computer OU). If you need this adding on a per user i would suggest the GPO setting above, by using GPO setting you are completing the task from the server side and not the user credentials. We had issues trying to elevate a script earlier this week on a per user basis.
Thank You