In the beta version of Windows Threshold, I can run:
$env:username
And look at the username. I can also run:
[environment]::username
And look at the username.
However, although I can run
$env:computername
To see the host name, try running:
[environment]::computername
does not show any results.

Why does [environment]::computername not work? What is the difference between $env and [environment]?
source share