How to get the current username in Windows Powershell?
Found it:
[Environment]::UserName
There is also:
[Environment]::UserDomainName [Environment]::MachineName