
Environment variables are named settings Windows and apps can read. The one most people edit is PATH, which tells Windows where to look when you type a command without its full file path.
This applies to Windows 10 and Windows 11 using the Environment Variables dialog.
Does This Affect You?
If a tool is installed but Command Prompt says it is not recognized, its executable folder probably is not in PATH, or the terminal was opened before the change was made.
Open Environment Variables
- Open Start and search for environment variables.
- Choose Edit the system environment variables.
- In System Properties, click Environment Variables.
- Review User variables for your account and System variables for every account on the PC.
Add a Folder to PATH
- Open the Environment Variables dialog.
- Select Path under User variables or System variables, depending on who should use it.
- Click Edit, then New.
- Paste the folder containing the program’s .exe, such as
C:Program FilesSomeToolbin. - Click OK through all open windows.
- Open a new Command Prompt or PowerShell window and test the command.
Create a New Variable
- Open Environment Variables.
- Under the correct User or System section, click New.
- Enter the exact variable name requested by the setup guide.
- Enter the variable value.
- Click OK and reopen any terminal or app that needs the variable.
Troubleshooting Notes
Existing Terminals Keep Old Values
Command Prompt, PowerShell, and many apps read variables when they start. Close and reopen them after editing PATH or any variable.
Check a Variable
In Command Prompt, run echo %PATH% or echo %VARIABLE%. In PowerShell, use $env:PATH or $env:VARIABLE.
User vs System Variables
Use User variables for your account when possible. Use System variables only when the setting must apply to all users or a guide specifically requires it.
PATH Typos Are Silent
Windows usually skips invalid PATH folders without warning. If a command still fails, confirm the path exists and the executable is actually inside it.
Sources
- Microsoft Learn: Environment variables
- Microsoft Learn: Windows PATH variable
- Microsoft Support: Edit system environment variables
