- Log on to the computer with a domain account.
- From a command-line prompt, run the following command.
dsquery * “CN=<hostname>,OU=Domain Controllers,DC=<yourdomain>,DC=<yourdomain>” –scope base –attr objectguid
dsquery * “CN=DC01,OU=Domain Controllers,DC=contoso,DC=com” –scope base –attr objectguid
Objectguid {57A8AAF4-686E-4128-8712-B6CA89FBF5BC}
- Log off the computer.