• subscribe
October 21, 2011 02:00 PM

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

Windows IT Pro
InstantDoc ID #141009

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.



ARTICLE TOOLS

Comments
  • murat yildirimoglu
    7 months ago
    Oct 24, 2011

    Jan, whoami /logonid command does not display user's SID or RID but rather its logon session ID. This ID changes from logon session to session. To display user's SID, the right command to be issued is whoami /all. When you give the latter command you can easily notice the SID and it is very different from session ID. And you can verify this info using dsget user command on DCs.

You must log on before posting a comment.

Are you a new visitor? Register Here