Windows 10 default environment variables
April 16, 2022
3:46 PM
Windows 10 default environment variables
VARIABLE
WINDOWS 10
%ALLUSERSPROFILE%
[path]
%APPDATA%
[path]
%COMMONPROGRAMFILES%
[path] Files\Common Files
%COMMONPROGRAMFILES(x86)%
[path] Files (x86)\Common Files
%CommonProgramW6432%
[path] Files\Common Files
%COMSPEC%
[path]
%HOMEDRIVE%
[path]
%HOMEPATH%
[path]
%LOCALAPPDATA%
[path]
%LOGONSERVER%
[path]
%PATH%
[path]
%PathExt%
.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.msc
%PROGRAMDATA%
[path]
%PROGRAMFILES%
[path] Files
%ProgramW6432%
[path] Files
%PROGRAMFILES(X86)%
[path] Files (x86)
%PROMPT%
$P$G
%SystemDrive%
C:
%SystemRoot%
[path]
%TEMP%
[path]
%TMP%
[path]
%USERDOMAIN%
Userdomain associated with current user.
%USERDOMAIN_ROAMINGPROFILE%
Userdomain associated with roaming profile.
%USERNAME%
{username}
%USERPROFILE%
[path]
%WINDIR%
[path]
%PUBLIC%
[path]
%PSModulePath%
%SystemRoot%\system32\WindowsPowerShell\v1.0\Modules\
%OneDrive%
[path]
%DriverData%
[path]
%CD%
Outputs current directory path. (Command Prompt.)
%CMDCMDLINE%
Outputs command line used to launch current Command Prompt session. (Command Prompt.)
%CMDEXTVERSION%
Outputs the number of current command processor extensions. (Command Prompt.)
%COMPUTERNAME%
Outputs the system name.
%DATE%
Outputs current date. (Command Prompt.)
%TIME%
Outputs time. (Command Prompt.)
%ERRORLEVEL%
Outputs the number of defining exit status of previous command. (Command Prompt.)
%PROCESSOR_IDENTIFIER%
Outputs processor identifier.
%PROCESSOR_LEVEL%
Outputs processor level.
%PROCESSOR_REVISION%
Outputs processor revision.
%NUMBER_OF_PROCESSORS%
Outputs the number of physical and virtual cores.
%RANDOM%
Outputs random number from 0 through 32767.
%OS%
Windows_NT