I am trying to determine the best method to modify registry keys stored in HKCU using group policy. I have successfully...
accomplished this but keys are only written once, and are not rewritten after a reboot.
For example, I created a user administrative template to set the registry value for a key sorted in HKCUSoftwareYahooPager that sets the application to use a proxy server. This works fine, but if the user alters the value (from the apps UI) the altered value is not overwritten by the GPO. If I make a change to the GPO the registry values are written again. According to Microsoft KB article 227448, if the GPO has not changed from the last time Group Policy was applied, the GPO is skipped and not applied again.
I am able to find more than enough information about using GPO for HKLM keys; in fact other policies I have in HKLM give me the option to enable auditing. I want users to be able to install the application and create & write to this key the first time, I just want to overwrite the setting when the GPO is applied.
What you are talking about may be worth doing by having a run-once Registry patch applied after the program is installed -- say, through an .MSI package. One of the problems with using Group Policies is that they are intended to be applied consistently, rather than just as a one-shot -- even in a scenario like this, where you're talking about the GPO overwriting an existing setting.
Dig Deeper on Windows Operating System Management
Related Q&A from Serdar Yegulalp
This week, our expert answers the question of how to get DVD data off a disc, even if the user's PC doesn't have an optical drive.continue reading
This week, our expert answers a question on how to connect a phone or tablet to a USB drive with a micro-USB connector.continue reading
Open source and free suites such as LibreOffice and OpenOffice could save organizations money, but not effort in comparison with Microsoft Office.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.