On a Microsoft Windows system, you can determine the username for an account from a command prompt window using the whoami command as shown below.
C:\Users\enzo\Documents>whoami slartibartfast\enzo C:\Users\enzo\Documents>
In the example above, the account name is enzo and the system name is slartibartfast.
If you want to determine what groups the account belongs to, which would
enable you to determine if the account is in the administrators group, you
could add the /groups
argument to the command as shown below.
I added the /fo list
option as well to format the output as
a list; if that option isn't specified the output will be in table format.
[ More Info ]