how to get the user name of the computer in command prompt code example Example: how to check user command windows Just type following command-line!! net user