$ 0 0 Summary: Use an easy command in Windows PowerShell to get userdomain\username. How can I use a command in Windows PowerShell to get information about a current user in userdomain\username format? Use the WhoAmI command:whoami