0

How to parse or get Local name of user ?

On windows log on screen My username is - Admin, but when I type

net user Admin newpass

It says there no user admin. When I go to Disk C > Users there wasn't any folder called admin. So admin folder was called otherwise. How I can get/parse this name using CMD

2
  • Try typing whoami Commented Mar 3, 2018 at 15:08
  • 1
    If you type net user you will get a list of users.
    – AFH
    Commented Mar 3, 2018 at 15:50

2 Answers 2

2

You can get a list of Users on the System using net user command.

The net user command is one of many net commands which is used to add, remove, and make changes to the user accounts on a computer, all from the Command Prompt.

net user command

Use commands this way :

net user

Will list all Users be it built-in or created by you. You will get the name of user you want here.

net user Administrator

Will give all details of the User Administrator. As you can see in above image admin is different from Administrator.

0

you can use wmic useraccount to show all information about the local user and user where to search for adminenter image description here this blog will give you wmic usernameaccount addtional informations

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .