How to: Get User SID in Windows

Last Updated on

1 Launch Command Prompt via “Win+X -> Command Prompt or PowerShell”

OR

Via run window (1. Use Win + R key combination to bring up Run window 2. Type “cmd” then hit Enter key)

Microsoft Windows - Run window
Microsoft Windows – Run window

2 Type following command to show current username and SID.

whoami /user

To show all usernames and SIDs

WMIC useraccount get name,sid

To show SID for a specific user

wmic useraccount where name="USER" get sid

e.g.

wmic useraccount where name="Administrator" get sid

Leave a Reply

Your email address will not be published. Required fields are marked *