Use Command Prompt to make user-level environment variables available to all user accounts
- Last UpdatedSep 03, 2025
- 1 minute read
Use Command Prompt to make user-level environment variables available to all user accounts
You can set user-level and system-level environment variables by using the setx command from a Command Prompt window with Administrator privileges. If the environment variable doesn't exist, the setx command creates the environment variable and sets its value.
You must restart your computer for your changes to take effect.
Add a user-level environment variable to the system-level environment
-
In the search box on your Windows task bar, enter command.
-
In the list of search results, right-click Command Prompt, and then select Run as administrator.
The Command Prompt window appears with Administrator privileges.

-
At the command prompt, enter the following command:
setx <variable> <value> /m
where <variable> is the environment variable and <value> is the variable value.
The /m switch indicates that the environment variable is set for the system-level environment.
-
Repeat step 3 for each environment variable needed for your licensing type.
For example, the following commands configure the AVEVA Licensing System licensing to point to a license server named AVEVAPRODLIC:
setx AVEVA_LICENSE_SERVER_LIST @AVEVAPRODLIC /m
setx AVEVA_CONNECT_AUTHORITY_URL https://signin.connect.aveva.com /m
See Licensing for AVEVA Process Simulation for the environment variable names.
-
Restart your computer.
After your computer restarts, the licensing environment variables are now available to all user accounts.