Installation & Licensing Center
HOW TO - Turn Off or Change the Ansys License Expiration Warning
Authored by Heribert Colombo
November 26th, 2026
2 views
0 likes
KB4125739
Description
Ansys shows a license expiration warning starting 30 days before a license entitlement expires. During a renewal, the expiring and renewed entitlements are separate entries in the license file. The warning only checks the expiring one, so it can appear even after you have renewed.
This article shows administrators how to change or turn off the warning with the ANS_FLEXLM_EXPWARN_DAYS environment variable.
Solution
1. Check That Your Renewed Licenses Are Installed
Before you change the warning, confirm that the warning is not about a license that is really expiring.
- On each FlexNet license server, open the Ansys License Management Center as Administrator. See HOW TO - Open the Ansys License Management Center.
- Click View FlexNet Licenses.
- Find the features named in the warning. Check that each one lists two entries: the current entitlement with its expiration date, and the renewed entitlement starting the next day with its new expiration date.
Note: If you only see the current entitlement, install the updated license file first. See HOW TO - Install an Ansys FlexNet License Key/File.
Note: To have SimuTech check the license server for you, follow Step 2 of HOW TO - Gather Ansys Diagnostic Logs and send the license server diagnostics to SimuTech support.
When both entries are present, the warning is expected. It stops once the renewed entitlement starts.
2. Set the Expiration Warning Variable
Set It on Every Computer That Runs Ansys
The variable works on the client, where Ansys launches, not on the license server. It suppresses warnings only for the user or computer where you set it. To avoid setting it machine by machine, deploy it through your endpoint management system.
- Close all Ansys applications.
- Open the Windows Start menu, search for "Edit the system environment variables", and open it.
- Click Environment Variables.
- Under "System variables", click New, and enter these values:
Setting |
Value |
|---|---|
| Variable name | ANS_FLEXLM_EXPWARN_DAYS |
| Variable value |
0 (turns off the warning), or 7 to 90 (days before expiration that the warning starts; the default is 30) |
0 Also Hides Real Expirations
A value of 0 also hides warnings for licenses you are not renewing. To keep a short notice instead, use a low value such as 7.
- Click OK in each window to save.
3. Verify It Worked
- Launch Ansys on a computer where you set the variable.
- Check that the license expiration warning no longer appears. If you set a value from 7 to 90, the warning appears only that many days before an entitlement expires.
- If the warning still appears, check that the variable name is exactly
ANS_FLEXLM_EXPWARN_DAYSand is set on the computer where Ansys launches. Then close and relaunch Ansys.
Note: For how entries in a license file work, see INFO - Understanding Ansys License Files (ansyslmd.lic).