Getting GPO GUID, Name from Active Directory

You don’t have to rely on the Group Policy Module to resolve the display name of a GPO from the GUID, or the GUID from the display name.  Here are two short functions that will get that information from Active Directory. The first will return the GPO displayname attribute from a GUID. The GUID (sometimes called the ID), can be entered with or without the surrounding curly brackets.

The second function does the reverse, returning the GUID from the DisplayName:

The domain parameter should be the DNS Domain root, not the NetBIOS or short name.

About Alan

This entry was posted in Active Directory, Functions, Group Policy Objects, PowerShell, Scripting, Scriptlets and tagged , , , . Bookmark the permalink.

Leave a Reply