User to SID

By | January 5, 2010

Some time we require a SID for the user account in active directory, using the simple inbuilt windows command we can get the User to SID

You can use the below command to find the User to SID

User to SID (Username to SID)

Username: Johnson (Pre-Win2k Name)

Syntax:

dsquery user -name “username” | dsget user -sid

Example:

dsquery user -name johnson | dsget user -sid
sid
S-1-5-21-0220945662-3111232555-725789543-38967718
dsget succeeded

Related Articles

Group SID

2 thoughts on “User to SID

Leave a Reply

Your email address will not be published. Required fields are marked *