# Finding a Host in AD by GUID

Windows Server 2003 Users and Computers allowed the specification of managed GUIDs when creating new computer objects. Any clashes in the domain would be displayed and this was my quick go-to method of tracking down duplicate GUIDs (a sometimes painful issue causing PXE boot problems).

This was removed from the default installation of this MMC snap-in on Server 2008. I believe you get it back if you install the WDS role, but I can’t do that on my Windows 7 machine. Instead, we can resort to hand-crafting LDAP queries to find any existing computer objects with our target GUID:

(&(objectClass=computer)(netbootGuid=\11\22\33\44\55\66\77\88\99\aa\bb\cc\dd\ee\ff\00))

Be careful to get the ordering correct of the GUID correct. The presence of hyphens often means the bytes need to be reordered .