Environment variables
Environment variables are treated as an item of the Env drive in the PS drive.
Environment variables
PS C:\> cd env:
PS Env:\> ls
Name Value
---- -----
ALLUSERSPROFILE C:\ProgramData
~Abbreviated as follows~
Quick reference
Environment variables can be referenced in a simplified way without moving them to the Env drive.
PS C:\> $env:param
value
YouTube
Click here for a video explanation.