Search Knowledge Base
KB #240132: Test if your License/Activation is valid
Type:
Info
Summary:
If you have a License and made some significant changes to your machine, this could invalidate your activation. If you have a Temporary, Evaluation or Lease license, you can test to see if it has expired or how many days are left prior to expiration. The utility below, NLSTATUS, can help quickly report the status of your license.
Additional Information:
Instructions for use:
- download the NLSTATUS utility.
- copy NLSTATUS.EXE onto the desktop of the machine that you want to test.
- Double-click it to run.
- It will display a pop-up with information:
- Invalid or Missing License
- Expired License
- Non-expiring License
- XX Days Left (when Temporary or Evaluation License)
Optional:
If you would like to build this into a script, you can use /S so that the results do not pop-up on screen, but are returned programmatically as ERRORLEVEL.
It returns ERRORLEVEL:
- 10000 if non-expiring
- 0 if expired
- -1 if invalid or missing key
- Otherwise, number days remaining
For example, you can put this into a command CMD script (e.g., TEST1.CMD) and run it:
@ECHO OFF
SETLOCAL
NLSTATUS.EXE /S
SET /A RET=%ERRORLEVEL%
if %RET% EQU 10000 (
ECHO Non-Exiring License
) else if %RET% EQU 0 (
echo Expired License
) else if %RET% EQU -1 (
echo Invalid or missing license
) else (
echo Days left^=%RET%
)
Related Topics:
240102: Encrypted Databases not accessible (Recovery Pending, Suspect)
240085: SQL will not start – related articles
240086: fn_n_keycount() returns Zero, when greater than Zero expected
Last modified: 2/23/2023