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

PowerTip: Pick Up User Name with PowerShell

$
0
0

Summary: Use Windows PowerShell to easily pick up the user name.

Hey, Scripting Guy! Question How can I easily pick up the user name from my Windows PowerShell script?

Hey, Scripting Guy! Answer Use the USERNAME environmental variable, and pick it up from the $env Windows PowerShell drive:

$env:USERNAME


Viewing all articles
Browse latest Browse all 3333

Trending Articles