Whoami Displays the CURRENT username and domain.

Displays the complete contents of the access token in the command window. Displays the user name and security identifier (SID), the group names, types, attributes and their SIDs, the

WHOAMI 2.0 @1997. Written by Christophe Robert([email protected]).

WHOAMI [/option] [/option] ...

Where /option is one of the following:

/ALL = Display all information in the current access token.
/NOVERBOSE = Display minimal information. *
/USER = Display user.
/GROUPS = Display groups.
/PRIV = Display privileges.
/LOGONID = Display Logon ID.
/SID = Display SIDs. *
/HELP = Display help.

* Must be used with option /USER, /GROUPS, /PRIV or/LOGONID

Samples are as follows:

WHOAMI
WHOAMI /ALL
WHOAMI /USER /SID
WHOAMI /GROUPS
WHOAMI /GROUPS /NOVERBOSE
WHOAMI /USER /GROUPS /SID
WHOAMI /PRIV /NOVERBOSE
WHOAMI /USER /GROUPS /PRIV
WHOAMI /HELP

If it displays only %USERNAME% then you are not logged onto the pc with a domain account.