What is the easiest way to delete a registry key with Group Policy, on Win Server 2008

Posted on 2011-10-14
Last Modified: 2012-05-12
What is the easiest way to delete an existing registry key with Group Policy, on Win Server 2008?

I guess this can be accomplished in many different ways, different kind of scripts etc. If I remember correctly it is possible to add registry entries through User Preferences > Windows Settings > Registry. But isn't that mostly for adding registry entries, or modifying Windows basic registry settings. Or can it be used to modify third party entries as well?
Question by:andre_st
    LVL 21

    Assisted Solution

    by:Joseph Moody
    You can delete using preference. It would be the easiest way.
    LVL 57

    Assisted Solution

    by:Mike Kline
    See the screenshot here from using GP Preferences to delete a key

    Are your clients XP, 7 or something else?  I know you are only talking about 2008 but you can also use GPP for clients.


    LVL 10

    Accepted Solution

    With Group Policy you can add, remove, update registry entries, make sure you're applying it to the proper group (user/group)

    You have the path right:

    Comptuer/User->Preferences->Windwos Settings

    Right click 'Registry' then click on 'New'->'Registry Item'.

    In this window there's an "Action" drop down menu where you can choose 'Delete', then just find the key path of the registry you want to delete.

    LVL 5

    Expert Comment

    And dont forget, when you use XP that you install the group policy client side extensions. You do need those to use the Preference part of the policies....
    LVL 10

    Expert Comment

    Never needed those extentions..

    Few other things is to make sure the PCs are part of the domain, and of course, the computer/user accounts reside on an OU that the GP is applied to, also remember

    gpupdate /force on the machines
    LVL 52

    Expert Comment

    My 2 cents:
    > But isn't that mostly for adding registry entries, or modifying Windows basic registry settings
    Using the wizard, one might conclude we cannot modify any keys that are not present on the computer running GPMC. But that's wrong, we can modify any key. So if you would like to CLICK (use the wizard) and not type in the paths, you would have to create that registry key first.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
    The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
    To efficiently enable the rotation of USB drives for backups, storage pools need to be created. This way no matter which USB drive is installed, the backups will successfully write without any administrative intervention. Multiple USB devices need t…
    This tutorial will walk an individual through setting the global and backup job media overwrite and protection periods in Backup Exec 2012. Log onto the Backup Exec Central Administration Server. Examine the services. If all or most of them are stop…

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now