Skip navigation

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

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.

Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish