Summary: Use Windows PowerShell to easily pick up the user name.
How can I easily pick up the user name from my Windows PowerShell script?
Use the USERNAME environmental variable, and pick it up from the $env Windows PowerShell drive:
$env:USERNAME
Summary: Use Windows PowerShell to easily pick up the user name.
How can I easily pick up the user name from my Windows PowerShell script?
Use the USERNAME environmental variable, and pick it up from the $env Windows PowerShell drive:
$env:USERNAME