Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

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

$
0
0

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 


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>