PowerTip: Use a PowerShell command to get User Name and Domain

Doctor Scripto

Summary: Use an easy command in Windows PowerShell to get userdomain\username.

Hey, Scripting Guy! Question How can I use a command in Windows PowerShell to get information about a current user in userdomain\username format?

Hey, Scripting Guy! Answer Use the WhoAmI command:

whoami 

0 comments

Discussion is closed.

Feedback usabilla icon