How ca I view the GUID associated with an Active Directory user under windows 7?

6 Answers 6


PsGetSid may do it.

  • FYI, this command return only the SID and not the ObjectGUID as requested. Strange it has been accepted.
    – Philippe
    Apr 7, 2021 at 8:19
  • Agreed, PsGetSid does not provide the AD Guid.
    – mlhDev
    May 26, 2021 at 15:17

This is easy to do using Active Directory Users and Computers.

Click View > Advanced Features (to be able to see Attribute Editor tab later)

Drill down to the user you want to know about and open the Properties.

Click the Attribute Editor tab

Scroll down to the "ObjectSID" or "ObjectGUID" attributes.



Open powershell.

Type: get-aduser -identity <insert username here>

The ObjectGUID will appear in the output


I would use the ADSI Edit snap-in for the Microsoft Management Console. See Using ADSI Edit on WIN-7.

The GUID is in an Active Directory attribute called objectguid.



Connection -> Bind -> OK

Browse -> Search

Base DN : (this varies per environment)

Fitler: (samAccountName=yourAccountName)

Scope: Subtree (this does nested search)

Attributes : add "objectGUID"


That should do it.


In PowerShell type the following commands:

Get-ADUser -Filter * -Properties SID | where {$_.sid -eq 'number here'}

Get-ADComputer -Filter * -Properties SID | where {$_.sid -eq 'number here'}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.