Environment variables store values that Windows and applications can use, such as folder paths and configuration information. Editing them can change how programs, scripts, and command-line tools behave. Make changes only when you know the variable and value you need.
User Variables vs. System Variables
User variables apply to the current user account. System variables apply more broadly to the computer and normally require administrator permission to change. Use a user variable when the software instructions call for one; do not modify a system variable simply because it seems more universal.
Open the Environment Variables Window
- Open Windows Search.
- Search for environment variables.
- Open the result for editing the system environment variables.
- In System Properties, select Environment Variables.
Create or Edit a Variable
- Choose the correct User variables or System variables section.
- Select an existing variable and choose Edit, or choose New to create one.
- Enter the exact variable name and value required by the application or documentation.
- Confirm the change.
- Close and reopen Command Prompt, Terminal, or the affected application so it can read the updated environment.
Edit PATH Carefully
The PATH variable contains locations Windows searches when you run commands without typing their full paths. When adding a program directory, add a separate entry rather than deleting existing PATH entries. Record the original configuration before editing it.
Incorrect Variables Can Break Software
A malformed PATH or incorrect system variable can prevent commands, development tools, or applications from finding required files. Environment-variable changes are configuration tasks, not general Windows performance tweaks. If you are following software documentation, use the exact scope, name, and value it specifies.
Test the Change
Open a new terminal or restart the affected application and verify the software now behaves as expected. If a problem begins immediately after the edit, restore the previous value.
Windows 10 Support Status
Support for standard Windows 10 version 22H2 ended on October 14, 2025. ESU programs and editions with different lifecycles can have different servicing status.
Summary
Open the Environment Variables dialog, choose the correct user or system scope, record the old value, and make only the required change. Treat PATH and system variables cautiously because mistakes can affect multiple programs.