Because I can never seem to remember this stuff.
Magical Environment Variable:
Doesn’t do much on its own though.
List all available properties:
Note to self: Remember to put that blasted colon at the end, and it will save you hours of figuring out why it lists your current folders instead.
Get the local computer name:
Get the processor attributes:
$Env:NUMBER_OF_PROCESSORS $Env:PROCESSOR_ARCHITECTURE $Env:PROCESSOR_IDENTIFIER $Env:PROCESSOR_LEVEL $Env:PROCESSOR_REVISION
Get the Operating System type:
Get the executable search path (just like PATH in DOS):
Get the TEMP path:
Get user related information:
$Env:USERDNSDOMAIN $Env:USERDOMAIN $Env:USERNAME $Env:USERPROFILE
Get the program files folders: