Get objectGUID and objectSid for Active Directory User

I can see what the objectGUID and objectSid are for a user, by going to: Active Directory Users and Computers -> The User -> Properties -> Attribute Editor, but it won't let me actually copy the values in string format! I can't even really copy the Hexadecimal value and convert it online since the hex characters are not given in order.

I've tried using ldp.exe but I can't get it to find the user.

Are there any other tricks to getting (and copying!) the objectGUID and objectSid of an Active Directory user?

2 Answers

Is PowerShell an option? If so you can do something along the following.

Get-ADUser USERNAME -Properties * | Select SamaccountName,ObjectSid,ObjectGUID

4

For all user user below powershell command and get it in csv

Get-ADUser -Filter * -SearchBase "OU=USA Users,DC=yourdomain,DC=net"  | Export-csv -path C:\usersproprieties.csv

Your Answer

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

Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest