whoami

Display details about the current user. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/whoami.

whoami

whoami /groups

whoami /priv

whoami /upn

whoami /logonid

whoami /all