LoginScript that changes \HKCU\Software\Policies\Microsoft\

I need to make this change to everyones KHCU.


So that their Outlook looks for the template in Public Folders, so that we can change the security settings.

Currently I'm asking them to log out, then I do a remote manange, add them to the admin group, they log in and run the reg key. Then they log out, and then I remote them from the admin group before they log in again. I've only done a few this way, since it was critical that their Outlook security settings was lowered.

I have read something about how you can do these things via Group Policy, but I can't seem to get that to work.
And the users just get a Access Denied to the registry when they try to add the reg key themselves without having
admin rights.

I thought about using the "run-as" feature, but I don't want to post any passwords in any login script files.

I started to look at making custom policy files, which might be the solution.

If anyone has any idea to what I can do here, that would be great.

Who is Participating?
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.

Chris DentPowerShell DeveloperCommented:

I thought that one downloaded with a Policy Template to allow you to enable it in GPO. Still, if not this one will handle it for you - Just save it as Office.adm (or something similar):


    CATEGORY "Microsoft Office"

        POLICY "Use Security Settings from the Exchange Server"

            KEYNAME "Software\Policies\Microsoft\Security"

            VALUENAME "CheckAdminSettings"
            VALUEON NUMERIC 1
            VALUEOFF NUMERIC 0

        END POLICY


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
Windows Networking

From novice to tech pro — start learning today.

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.