How to Deactivate NCache Using PowerShell

In NCache deployment environments, there can be multiple scenarios when you need to move licenses from one machine to another. For example:

  • You are raising a new NCache Environment: You are changing the OS, hardware, or network.
  • Your machine is dead: Hardware failure, software failure, or data center failure.
  • You are upgrading NCache Version: You are upgrading NCache and need to move licenses from an older version to a newer version of NCache.
  • Any other reason

To solve these problems, activated machines using the NCache license can be deactivated through PowerShell using the Unregister-NCache PowerShell cmdlet. By deactivating a license, you can free up existing licenses, which can then be used to activate other machines.

NCache allows two modes of deactivation which are explained below:

Online Deactivation

The online mode of deactivation is used when you have proper access to the internet. It’s a very simple process. Just follow the step below:

  • Execute the following command in PowerShell to deactivate your license. Here you’ll provide your license key (which you received from Alachisoft Sales on purchase of NCache) with the Key parameter.
  • Unregister-NCache -Key xxxxxxxx-xxxxxx-xxxxxxxx
  • On successful deactivation of your license, you will be prompted with a success message.

Offline Deactivation

The offline mode of deactivation is used when you don’t have access to the internet or the outbound traffic from your system is limited due to some security constraints. Follow the steps below to deactivate your license using this mode:

Step 1: Generate Deactivation Request Code URL

Execute the following command in PowerShell to generate your Deactivation Request Code URL. The license key (which you got from Alachisoft Sales on purchase of NCache) is provided with the Key parameter.

Unregister-NCache -Key xxxxxxxx-xxxxxx-xxxxxxxx -OfflineDeactivate

Step 2: Deactivate License

Open the generated Deactivation Request Code URL on a machine that has internet access. This will open the Deactivation Verification Page. Verify your information and click Deactivate! On successful deactivation, you will be redirected to the Deactivation Result page with a success message.

Verify Successful License Deactivation

Use the customer console to verify the successful deactivation of NCache license on your machine. You will need to enter the license key to view the history of activations on your key. The number of available licenses should be less than before. You can also use the Get-NCacheVersion PowerShell cmdlet to verify successful deactivation of NCache license on your machine.

What to Do Next?

Signup for monthly email newsletter to get latest updates.

Contact Us

PHONE

+1 (214) 764-6933 (US)

+44 20 7993 8327 (UK)

© Copyright Alachisoft 2002 - . All rights reserved.