Environmentvariables
Environmentvariables
Set environment variable
| |
Set globally for machine scope:
| |
Can also add to the PowerShell profile so all PowerShell sessions have the variable initiated:
| |
Environment Variables in Windows
Environment Variable - Corresponding Path
%SystemDrive% C:\ (Operating System drive)
%SystemRoot% C:\Windows
%WINDIR% C:\Windows
%HOMEDRIVE% C:\ (Operating System drive)
%HOMEPATH% C:\Users\
%USERPROFILE% C:\Users\
%APPDATA% C:\Users\AppData\Roaming
%ALLUSERSPROFILE% C:\ProgramData
%PROGRAMFILES% C:\Program Files
%PROGRAMFILES(X86)% C:\Program Files (x86)
%PROGRAMDATA% C:\ProgramData
%TEMP% C:\Users\AppData\Local\Temp
%LOCALAPPDATA% C:\Users\AppData\Local
%PUBLIC% C:\Users\Public
%COMMONPROGRAMFILES% C:\Program Files\Common Files
%COMMONPROGRAMFILES(x86)% C:\Program Files (x86)\Common Files