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”