← 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 #240005: Cannot Perform Case-Insensitive Compare on Encrypted Strings Using APIs

Type: Tip Summary: This article explains why you cannot do a case-insensitive compare on encrypted…

KB #240016: SQL Query Results Truncated or Missing When Selecting Encrypted Columns

Type: Information Summary: The result set from a SELECT statement in Query Analyzer may appear…

KB #240155: Returning to a clean state

Type: Info Summary: This article provides some extra steps if there are issues with uninstall…

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?