Get SID of AD user

I recently did a terminal server replacement for a small number of users.  I found that the users didn’t use standard drive mappings, logon scripts, etc; They used 1-off manually mapped drives.

I took it upon myself to move them to a standardized drive mappings.  These aren’t the type of users who you could email and have them respond with what network locations they used.  As there weren’t many users, I elected to pull this info out of the registry on the terminal server.  But first I needed the SID. I used the following to pull the SID from the username.

wmic useraccount where name=’username’ get sid


Once I had the SID, I then could review HKEY_USERS > SID > Network and the network drive and remote mapping would be there.


One thought on “Get SID of AD user

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s