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

PS drive | miajimyu note

Quick reference

Environment variables can be referenced in a simplified way without moving them to the Env drive.

PS C:\> $env:param


Click here for a video explanation.

About Environment Variables | Microsoft Docs

Last modified October 11, 2022: update (8216439)