Quickly edit a GPO

  • Section(s): Active Directory, Admin
  • Published on Jul 22, 2009.
  • Last Modified on Mar 06, 2009.
  • Last Modified by Mitch Tulloch.
  • Rated 1 out of 5 based on 1 votes.
Gpedit.msc has some command-line options that let you quickly edit targeted Group Policy OPbjects.

Gpedit.msc, the Group Policy Object Editor, has some command-line options that let you quickly edit targeted Group Policy Objects. For example, to view the Local Group Policy Object (LGPO) settings on a member server named SRV22 in the CONTOSO domain, do this:

gpedit.msc /gpcomputer:"SRV22.contoso.com"

You can also open a domain GPO from the command line provided you know the globally unique identifier (GUID) of the GPO. To determine the GUID of a GPO, open Group Policy Management from Administrative Tools, select the GPO, and select the Details tab. For example, the GUID of the Default Domain Policy GPO is always {31B2F340-016D-11D2-945F-00C04FB984F9}.

Once you know the GUID of a GPO, you can open the GPO for editing from the command-line as follows:

gpedit.msc /gpobject:"LDAP://CN={31B2F340-016D-11D2-945F-00C04FB984F9},CN=Policies,CN=System,DC=contoso,DC=com"

Once you've verified this works, you can create a shortcut for this command, name the shortcut "Edit the Default Domain GPO" and save the shortcut on your desktop. Then whenever you need to edit this GPO you simply double-click on the shortcut.

About Mitch Tulloch

Mitch Tulloch is a widely recognized expert on Windows administration, networking, and security. He has been repeatedly awarded Most Valuable Professional (MVP) status by Microsoft for his outstanding contributions in supporting users who deploy and use Microsoft platforms, products and solutions. Mitch has published over two hundred articles on different IT websites and magazines, and he has written or contributed to almost two dozen books and is lead author for the Windows 7 Resource Kit from Microsoft Press. For more information, see www.mtit.com .


Article not looking right or info is missing? Let us know so that we can fix it: .


Receive all the latest articles by email!

Receive Real-Time & Monthly WindowsNetworking.com article updates in your mailbox. Enter your email below!
Click for Real-Time sample & Monthly sample

Become a WindowsNetworking.com member!

Discuss your network issues with thousands of other network administrators. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred Anti Spam Hardware solution?

Follow TechGenix on Twitter