“I have a GPO GUID and want to know to which GPO this belongs to?”. If that is your question, you can happily use the below method. For this you need to have “support tools” of Windows 2003. You can get it from Microsoft Web Site as well. Alternatively, you can copy search.vbs from any machine where support tools package is installed.
cscript /nologo search.vbs “LDAP://dc=mydomain,dc=com” /C:”&(objectClass=groupPolicyContainer)(name={31B2F340-016D-11D2-945F-00C04FB984F9})” /P:displayName /S:SubTree
tags:how to find GPO name, GPO GUID to name resolution
Comments on this entry are closed.
Awesome post. Exactly what I was looking for. thanks
Thanks for this, it triggered a memory of mine, you can quite simply backup all your GPOs using GPMC, then simply go to Manage Backups and you’ll see the GPO GUID in the display against the one you were probably looking for unless it was deleted.
Saves having to remember a script
@PutneyBoy
Agree. The procedure you mentioned works if you want to do it manually. If you want to do this in your scripts/programs, then obviously you need to rely on some code. Thanks for your comments 🙂
Thanks, great article!
how can you put it as a script to run hundreds of GUID?
Thanks,