Q: What's the easiest way to find out the SID and RID that are linked to my account?

Use the Whoami command to get the security ID (SID) and Relative ID (RID) of the account used to log on to Windows.

Jan De Clercq

October 21, 2011

1 Min Read
ITPro Today logo in a gray background | ITPro Today

A: To easily find out the security ID (SID) and Relative ID (RID) that are linked to the account you used to log on to Windows, type the following Whoami command at a command prompt:

whomami /logonid

The RID is the last part of the SID. On Windows 7, Windows Vista, Windows Server 2008, and Windows Server 2003, Whoami is included with the OS. On Windows 2000, it's part of the Resource Kit; and on Windows XP, it's included in the Support Tools.

Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like