← Back to Knowledge Base

KB #240132: Test if your License/Activation is valid

⏱️ 2 min read

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

240134: Error message: The current license has failed validation.

Was this article helpful?

Related Articles

KB #240029: How to specify column and table names containing embedded spaces

Type: Tip Summary: Column and table names containing embedded spaces (blanks) must be enclosed in…

KB #240112: Installing SQL Server Management Objects (SMO)

Type: Information Summary: Important note: For Column Encryption support only. The SQL Server Management Objects…

KB #240020: APIs returning empty or invalid values when encrypting or decrypting (SQL Server)

Type: Information Summary: This article discusses why you may see the APIs returning empty or…

Still need help?

Our support team is here to assist you.

NetLib Security
AI Assistant · Online
Hi! I'm the NetLib Security assistant. I can answer questions about our encryption solutions, HIPAA compliance, Encryptionizer, and more. How can I help you today?