Installation & Licensing Center
HOW TO - Create an Environment Variable
Authored by Nick Heberle
November 3rd, 2026
21172 views
19 likes
KB1335336
Description
Some Ansys settings use environment variables, which are named settings in Windows that programs read when they start. You write an environment variable as VARIABLE_NAME=VARIABLE_VALUE.
Use this article when an Ansys guide or instruction tells you to create an environment variable on a Windows computer.
Solution
Before You Start
Ansys uses System environment variables unless the guide or instructions you are following say otherwise. You need Local Administrator rights on the computer to create or change a System environment variable.
Create the Environment Variable
- Open the Windows Start menu, search for "Edit the system environment variables", and open it.
- In the "System Properties" window, click Environment Variables.
- Under "System variables", click New.
- Enter the variable's name in "Variable name" and its value in "Variable value", then click OK.
- Click OK in the "Environment Variables" window, then in the "System Properties" window, to save your changes and close both windows.

Verify It Worked
- Close and reopen any Ansys applications you had open, so they read the new variable.
- Open a new Command Prompt window, type
echo %VARIABLE_NAME%, and press Enter. ReplaceVARIABLE_NAMEwith the name of your variable. - Check that the output shows the value you entered. If it shows
%VARIABLE_NAME%instead, Windows does not have the variable: check its spelling under "System variables" and try again.