whoami:tldr:2ebf5
The command "whoami /upn" is used in Windows command prompt to display the User Principal Name (UPN) associated with the currently logged-in user.
User Principal Name (UPN) is a user identifier in an Active Directory (AD) environment, commonly used for authentication purposes. It consists of a username followed by the "at" symbol (@) and a domain name.
When you run the "whoami /upn" command, it retrieves and displays the UPN of the current user account. For example, if the currently logged-in user is "john@example.com," the command will return "john@example.com."
This command is particularly useful in scripting or troubleshooting scenarios where you need to verify the UPN of the logged-in user without needing to navigate through user account settings.