In NCache deployment environments, there can be multiple scenarios when you need to move licenses from one machine to another. For example:
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:
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:
Unregister-NCache -Key xxxxxxxx-xxxxxx-xxxxxxxx
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:
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
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.
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.