This tutorial shows you multiple ways to get Current Username in powershell.
Get Current Username
or $Env:UserDomain $Env:ComputerName
Multiple ways to know the installed powershell version using cmdlet and script programming..
This tutorial shows you multiple ways to get Current Username in powershell.
or $Env:UserDomain $Env:ComputerName