Adding Trusted Locations programatically

M

Mike B

I am working on a solution to adding new trusted locations to PC's
based on our divisions. Since it is very difficult to get the OK to
add these locations via group policy I am stuck with adding them via
the login script and was just wondering if anyone else had encountered
this.

What I have at the moment is this:
Add the location in the User Settings key under HKLM\..
\Office12\etc.
ex.
WshShell.RegWrite "HKLM\SOFTWARE\Microsoft\Office\12.0\User Settings
\COCStrustedLocation\Create\Software\Microsoft\Office\12.0\Excel
\Security\Trusted Locations\Location22\AllowSubFolders",1,"REG_DWORD"

I have been adding it based on the app but also want to add it to all
apps so started using \Commone\security\trusted locations
\AllAppsPolLocationxx in place of \app\security\trusted locations
\Locationxx

At the moment, I am the only one doing this so can easily keep track
of what xx equals so should not have keys getting overwritten. But
there may come a time when i am not doing it and then there is the
chance that these keys can get replaced if a number is reused.

So, what it boils down to is this, am I on the right track? Does
anyone have a better way, outside of using policy?

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top