Skip to main content

One doc tagged with "Command Prompt"

View All Tags

Get User SID

To get the SID (Security Identifier) you can use the command wmic useraccount. The command wmic useraccount is a command-line tool that allows you to get information about user accounts on a Windows system. By adding the where name='username' clause, you are specifying that you only want information about the user account with the specific username that you enter.