Windows default environment variables

Powershell display current variables

ls env:

User Path Variables

%APPDATA% C:\Users\{username}\AppData\Roaming

%HOMEPATH% C:\Users\{username}

%LOCALAPPDATA% C:\Users\{username}\AppData\Local

%TEMP% C:\Users\{username}\AppData\Local\Temp

%TMP% C:\Users\{username}\AppData\Local\Temp

%USERNAME% {username}

%USERPROFILE% C:\Users\{username}

%OneDrive% C:\Users\{username}\OneDrive

Program Path Variables

%ALLUSERSPROFILE% C:\ProgramData

%COMMONPROGRAMFILES% C:\Program Files\Common Files

%COMMONPROGRAMFILES(x86)% C:\Program Files (x86)\Common Files

%CommonProgramW6432% C:\Program Files\Common Files

%PROGRAMDATA% C:\ProgramData

%PROGRAMFILES% C:\Program Files

%ProgramW6432% C:\Program Files

%PROGRAMFILES(X86)% C:\Program Files (x86)

Leave a Reply

Your email address will not be published. Required fields are marked *