Tuesday, May 14, 2024

Command line - Display User SID with WMIC - All Users

 

Simple Command line to display user SID - All User SID 

Simple Command line to display user SID - All User SID

This may be useful to you as it's been for me. It's the fastest and simplest method for finding and listing user SIDs of a domain or local computer is the following command line. 

C:\Windows>wmic useraccount get domain,name,sid

Just open a standard command prompt or PowerShell prompt on a windows server or desktop. The server doesn't need to be a domain controller. Any domain joined modern windows server of any version will have this command available from the command lien to display the SIDs of all users.

The users will be local and domain users. Local listed first, then all the domain users. 

This WMIC command is extremely useful for a quick lookup of a user's SID when troubleshooting an issue such as profiles or logins. 

If the list is long, you can scroll in the command window, either a command line or PowerShell commend line, or select copy and paste the output of the command into Notepad. Then search within Notepad using CTRl+F or menu option find to locate the username. 

 

Please share, link, and subscribe. 


 


No comments: