Activate NCache Purchased License
This PowerShell script lets you activate NCache license on remote machines. It makes your administrative tasks easy when you have many servers to activate because you do not have to manually activate the license on each server.
You should have internet access on all the machines where you want to activate NCache through the PowerShell script. Internally, this script uses command line tool NActivate.exe of NCache. You provide valid admin user ID and password that has the permissions to execute commands on remote machine.
To activate NCache remotely, you need to use the PowerShell script ActivateNCache.ps1 shipped with NCache. This is located at %NCHOME%/Integrations/PowerShell.
Pre-requisites:
- All remote machines must be logged in as Administrator.
- The NCache setup MSI file must be placed in the same location on all remote machines.
To remote activate NCache license, do the following:
From the machine from where you’re activating NCache remotely, search for Windows PowerShell and select Run as Administrator.
Go to the directory %NCHOME%/Integrations/PowerShell.
Execute the following command, modifying the values according to your environment. Note that this example activates NCache license on three machines (20.200.20.29,20.200.20.30 and 20.200.20.31)with credentials for John Smith. It is assumed that NCache is installed on the default path C:/Program Files.
ActivateNCache.ps1 /k xxxxxxxx-xxxxxx-xxxxxxxx /f John /l Smith /email john@alachisoft.com /servers 20.200.20.29 20.200.20.30 20.200.20.31 /uid Administrator /pwd adminPassword
Remote Activation Properties
Argument | Description |
---|---|
/k key |
The license key received from Alachisoft Sales upon purchasing NCache. |
/f first-name |
First name of the user. |
/l last-name |
Last name of the user. |
/email email-address |
Email address of the user. |
/uid |
A valid user name for the administrator's account that has permissions to execute the command on remote machine. |
/pwd |
Valid password for the administrator's account. |
Option | Description |
---|---|
/servers server-names |
Allows the user to specify a comma separated list of names or IPs of the machines on which NCache is to be activated. |
/a address |
Allows users to specify the company's address |
/city city-name |
Allows users to specify the edition of NCache. Default is "0". |
/s state |
Allows users to specify state name |
/c country-name |
Allows users to specify the country name. |
/p phone-number |
Allows users to specify the company's phone number. |
/z zip-code |
Allows users to specify the zip code |
/? |
Displays command syntax and options for the utility. |