10

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

6 Answers 6

2

PsGetSid may do it.

2
  • 1
    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
  • 1
    Agreed, PsGetSid does not provide the AD Guid.
    – mlhDev
    May 26, 2021 at 15:17
24

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.

Profit.

3

Open powershell.

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

The ObjectGUID will appear in the output

1
1

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.

1

c:\windows\system32\LDP.exe

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.

1

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'}

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .