Windows Environment Variables
See: Windows Environment Variables
Return to PowerShell Commands, PowerShell cmdlets, Windows Command-Line
Complete list of environment variables on Windows 10
Use these environment variables to browse Windows locations on any computer quickly.
On Windows 10 and Windows 11, environment variables are predefined names representing the Windows path to certain Windows locations within the Windows operating system, such as a drive or a particular file or folder.
Environment variables can be helpful in a number of scenarios, but they’re particularly useful if you’re an IT person or you’re fixing someone else’s computer, as you can quickly navigate to certain locations without even knowing the Windows username or full path to a Windows system folder.
For example, instead of browsing a path like C:\Users\<UserName>\AppData\Roaming, you can open the Run command (Windows key + R), type this variable %APPDATA%, and press Enter to access the same path. Or you can use the %HOMEPATH% variable to access the current user default folders location — where the operating system stores the folders for Windows Desktop, Windows Documents, Windows Downloads, OneDrive, etc.
In this guide, you’ll learn the list of the most common environment variables you can use on Windows 10 and Windows 11.
Windows 10 default environment variables
VARIABLE WINDOWS 10
- %HOMEDRIVE% - \
Although you can use environment variables to quickly access certain locations within Windows 10, you’ll typically use these variables when building a script or an application.
Keep in mind that some of the variables mentioned are not location-specific, including %COMPUTERNAME%, %PATHEXT%, %PROMPT%, %USERDOMAIN%, %USERNAME%.
While this guide is focused on Windows 10, it’s important to note that these variables will also work on Windows 8.1, Windows 7, Windows Vista, and Windows 11.
You can always view all the environment variables available on your device using the Get-ChildItem Env: | Sort Name PowerShell command.
Environment Variables: Unix environment variables - Unix configuration, Linux environment variables - Linux configuration, macOS environment variables - macOS configuration, Windows environment variables - Windows configuration, GitHub Environment Variables. (navbar_environment_variables - see also navbar_operating_systems)
© 1994 - 2024 Cloud Monk Losang Jinpa or Fair Use. Disclaimers
SYI LU SENG E MU CHYWE YE. NAN. WEI LA YE. WEI LA YE. SA WA HE.