List of SYSTEM and USER Environment Variables

Windows has a default set of environment variables and their values. There are two types of environment variables: user environment variables (set for each user) and system environment variables (set for everyone). For example, the variable %USERNAME% represents the name of the currently logged-on user account.

If you have inadvertently removed one or more standard environment variables in Windows 10 or 11, the following table can help you manually re-add them.

Environment variables (System)

There are the default System variables.

Variable Value
ComSpec C:\WINDOWS\system32\cmd.exe
DriverData C:\Windows\System32\Drivers\DriverData
NUMBER_OF_PROCESSORS
OS Windows_NT
PATH C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH\
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE
PROCESSOR_IDENTIFIER
PROCESSOR_LEVEL
PROCESSOR_REVISION
PSModulePath %ProgramFiles%\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules
TEMP C:\WINDOWS\TEMP
TMP C:\WINDOWS\TEMP
USERNAME SYSTEM
windir C:\WINDOWS

Environment variables (User)

The following are the User variables.



Variable Value
OneDrive C:\Users\username\OneDrive
OneDriveConsumer C:\Users\username\OneDrive
PATH C:\Users\username\AppData\Local\Microsoft\WindowsApps;
TEMP C:\Users\username\AppData\Local\Temp
TMP C:\Users\username\AppData\Local\Temp

Note:

To open the Environment Variables dialog, launch sysdm.cpl, click “Advanced”, and click “Environment variables”.


One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time.

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a ten-time recipient of the Microsoft MVP award in Windows Desktop Experience (Windows Shell), from 2003 to 2012. Ramesh founded Winhelponline.com in 2005.

Leave a Comment