: Environment Variable Support for Windows Vista and Later Releases
Focus
Focus

Environment Variable Support for Windows Vista and Later Releases

Table of Contents

Environment Variable Support for Windows Vista and Later Releases

The following table displays environment variables and target values supported on endpoints running Windows Vista and later releases.
The %CommonProgramFiles(x86)% and %ProgramFiles% environment variables expand to the native value of the machine. On 64-bit machines, the environment variable expands to the 64-bit value even when operating on behalf of a 32-bit process. On 32-bit machines, the environment variables expands to the file path provided by the application.
Environment Variable
Example Value
%ALLUSERSPROFILE%
C:\ProgramData
%CommonProgramFiles%
C:\Program Files\Common Files
%CommonProgramFiles(x86)%
(64-bit only) C:\Program Files (x86)\Common Files
%CommonProgramW6432%
(64-bit only) C:\Program Files\Common Files
%ProgramFiles%
C:\Program Files
%ProgramFiles(x86)%
(64-bit only) C:\Program Files (x86)
%ProgramW6432%
(64-bit only) C:\Program Files (x86)
%ProgramData%
C:\ProgramData
%SystemDrive%
C:
%SystemRoot%
C:\Windows
%TEMP% and %TMP%
C:\Users\<username>\AppData\Local\Temp
%USERPROFILE%
C:\Users\<username>
%windir%
C:\Windows
%COMPUTERNAME%
<computername>
%ComSpec%
%SystemRoot%\system32\cmd.exe
%FP_NO_HOST_NAME%
NO
%NUMBER_OF_PROCESSORS%
1
%OS%
Windows_NT
%PATH%
%SystemRoot%\system32;%SystemRoot%...
%PATHEXT%
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
%PROCESSSOR_ARCHITECTURE%
AMD64
%PROCESSOR_IDENTIFIER%
Intel64 Family 6 Model 69 Stepping 1, GenuineIntel
%PROCESSOR_LEVEL%
6
%PROCESSOR_REVISION%
4501