command to know the current user windows code example Example: how to check user command windows Just type following command-line!! net user