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
The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.
0 comments