Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Remotely grabbing username

$
0
0

I am using Get-item env:\username and I would only like to grab the value so I can set it to $strname

PS C:\Users\testuser> Get-Item env:\username

Name Value
—- —–
USERNAME testuser

Thank you for assistance.


Viewing all articles
Browse latest Browse all 13067

Trending Articles