snippetbashTip
whoami — Display details about the current user. More information: <https://learn.microsoft.com/windows-serve
Viewed 0 times
thecurrentcommandwhoamidetailscliaboutdisplay
windows
Problem
How to use the
whoami command: Display details about the current user. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/whoami>.Solution
whoami — Display details about the current user. More information: <https://learn.microsoft.com/windows-server/administration/windows-commands/whoami>.Display the username of the current user:
whoamiDisplay the groups that the current user is a member of:
whoami /groupsDisplay the privileges of the current user:
whoami /privDisplay the user principal name (UPN) of the current user:
whoami /upnDisplay the logon ID of the current user:
whoami /logonidDisplay all information for the current user:
whoami /allCode Snippets
Display the username of the current user
whoamiDisplay the groups that the current user is a member of
whoami /groupsDisplay the privileges of the current user
whoami /privDisplay the user principal name (UPN) of the current user
whoami /upnDisplay the logon ID of the current user
whoami /logonidContext
tldr-pages: windows/whoami
Revisions (0)
No revisions yet.