The Windows Club

WHOAMI utility in Windows 7/8/10 and its use, syntax, commands

Not many of you may be aware of it, but Windows has a command-line utility called as the WHOAMI utility (Who Am I). With this utility, you can find out the name of the account that’s currently logged on, its SID, the names of the security groups of which it’s a member, and its privileges. The tool was introduced in Windows Vista onwards – but it is also available as part of the Windows 2000 Resource Kit and Windows XP SP2 Support Tools. We had touched upon this tool briefly in our WinVistaClub post earlier, but are giving a few more details about it here.

WHOAMI in Windows

The whoami utility can be used to get user name and group information along with the respective security identifiers (SID), privileges, logon identifier (logon ID) for the current user (access token) on the local system. i.e. who is the current logged on user? If no switch is specified, tool displays the user name in NTLM format (domain\username).

> Ad


To use whoami, run cmd.exe first. To learn the name of the logged-on user, simply type whoami and hit Enter. This is particularly useful if you’re logged on as a standard user, but running an elevated Command Prompt window.

For a complete list of Whoami parameters, and for learning about the syntax, type whoami /?

Here is the complete parameter list for WOAMI

WHOAMI Parameter List:

Windows XP users may download the support tools from here.