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 must have to provide valid admin user ID and password that has the permissions to execute commands on remote machine.
You should find the ActivateNCache.ps1 script at [InstallDir]/integration/PowerShell/ActivateNCache.ps1
.
ActivateNCache.ps1 /k key /f first-name /l last-name /email email-address /uid server-username /pwd server-password [ options[...] ].
Argument | Description |
---|---|
/k key |
Allows users to specify a valid license key . |
/f first-name |
Allows users to specify first name. |
/l last-name |
Allows users to specify last name . |
/email email-address |
Allows users to specify email address. |
/uid |
Specify a valid user name that has permissions to execute the command on remote machine. |
/pwd |
Specify a valid password. |
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. |
In the following examples we will activate NCache License key on three machines
Test1, Test2, and Test3 using the PowerShell script ActivateNCache.ps1. It
is assumed that NCache is installed on the default path C:/Program Files
.
Example of Activating NCache License Remotely
PS C:/Program Files/ncache/integration/PowerShell>ActivateNCache.ps1 /k xxxxxxxx-xxxxxx-xxxxxxxx /f Paul /l Jones /email paul.jones@alachisoft.com /servers Test1, Test2, Test3 /uid Administrator /pwd 123pwd
This will activate NCache on three machines Test1, Test2 and Test3.
Note
Please replace the server “Test1, Test2, Test3” with your own server names.