Blog

Group Policy Preferences and the Registry

Posted by:

So, the other day I was trading some email with a friend and mentioned that I was working on a nifty little utility to allow someone to import the contents of a .reg file into Group Policy Preferences registry extensions using the command-line. He commented that it sounded interesting but that the GP Preferences UI already supported something like this. So I thought I’d play around with it and see exactly how this works. He was right of course (mostly because he was the original architect of the predecessor of GP Preferences Laughing).

Within the Registry portion of GP Preferences (Computer or User Configuration/Preferences/Windows Settings/Registry), you can, of course, deploy individual registry settings to your heart’s content. I find this to be a better alternative to writing custom ADM or ADMX files in most cases because its easier to do, and you can leverage the Item-level Targeting feature in GPP. But what I hadn’t tried was the Registry Wizard option that you get if you right click the Registry nodes and choose New, Registry Wizard. This is where it gets fun. From this wizard, you can browse the registry on either the local or a remote computer and choose the reg keys and values within the registry tree, that you’d like to deploy, as shown here:

Browsing the Registry in GP Prefs

Once you’ve chosen the keys and values you want, GP Preferences automatically creates the policy settings for those keys and lets you distribute them to all your target machines.

So, my friend was right, of course. I’m still going to build my command-line .reg import tool because, hey, its always better from the command-line, right? But this is a pretty cool capability within GP Preferences that lets you get going right away deploying registry modifications instead of having to write those pesky ADM files.

 

Tags

Group Policy, Group Policy Preferences, ADM

4


About the Author:

Darren Mar-Elia is CTO & Founder of SDM Software, Inc. Darren has over 25 years of IT and Software experience in the Microsoft technology area, including serving as a Director in Infrastructure at Charles Schwab, CTO of Windows Management Solutions at Quest Software, and Sr. Director of Product Engineering at DesktopStandard. He has been a Microsoft MVP in Group Policy technology for the last 6 years and has written and spoken on Active Directory, Group Policy and PowerShell topics frequently over the years. He maintains the popular Group Policy resource web site at www.gpoguy.com and has been a contributing editor for Windows IT Pro Magazine since 1997. He has written and contributed to twelve books on Windows. Darren also speaks frequently at conferences on Windows infrastructure topics.

Discussion

  1. Joyce Hettenbach  January 25, 2011

    Using the registry wizard to indivudually pick multiple (or perhaps even hundreds) of individual registry keys and values is tremendously inefficient. I just want to be able to load a registry file and be done with it. I am amazed Microsoft did not build this capability into the Group Policy Preferences Feature.

    Did you ever complete your command line utility? Is it available to share?

    (reply)
    • Administrator  January 26, 2011

      Joyce-
      Check out http://www.reg2xml.com, provided by fellow Group Policy MVP Mark Heitbrink. He took it upon himself to solve this problem.
      Darren

      (reply)
  2. Christine Lisi  June 16, 2011

    I find this process flaky and I’m trying to figure out where the log files for these GP Pref settings are on both Win XP and Win7. I need logs so I can see what’s happening (or not happening!). Can someone tell me where these logs would be on the workstations?

    Thanks.

    (reply)
    • Administrator  June 23, 2011

      GP Preferences has its own logging that’s enabled by downloading a GPP tracing ADMX file, found here: http://bit.ly/ksW2Tt

      (reply)

Add a Comment