Remote Installation through PowerShell
NCache provides a PowerShell script called InstallNCache.ps1 for installing NCache on remote machines.
You should find the InstallNCache.ps1 script at [InstallDir]/Integration/PowerShell/InstallNCache.ps1
IntallNCache.ps1 /k key /file msi-file-name /file-path complete-file-path-of-msi [option[...]]
Argument | Description |
---|---|
/file file-name |
Allows the user to specify the name of the setup file along with the file extension. |
/file-path complete-file-path |
Allows the user to specify the complete file-path/file-location of the setup file. |
/k key |
Allows the user to specify a valid license key. |
Option | Description |
---|---|
/servers / server-names |
Allows the user to specify a comma separated list of Server Names or IP Addresses of machines where NCache is going to be installed. |
/f / first-name |
Allows the user to specify first name. |
/l / last-name |
Allows the user to specify last name. |
/e / edition |
Allows the user to specify the NCache installation.0 : Cache Server installation2 : Developer3 : Remote Client installationDefault is 0 . |
/email / email-address |
Allows the user to specify the email address. |
/company / company-name |
Allows the user to specify the company name. |
/install-dir / installation-path |
Allows the user to specify the path where to install NCache. Default is "C:/Program Files/". |
/set-per / permissions |
Allows the user to specify the permissions for quite mode. Default is 1 . |
/? |
Displays command syntax and options for the utility. |
Example
In this example, we will install NCache Cache Server on three computers (Test1,
Test2, and Test3) using the PowerShell script InstallNCache.ps1. It is assumed
that the NCache setup MSI file is available on C:/
Drive root and also that
NCache is installed on the default path C:/Program Files
.
PS C:/Program Files/ncache/integration/PowerShell> ./installNCache.ps1 /e 0 /k 7B1JYKITFRERLEIIE /file “NCachex.x_Enterprise_DotNet_x64.msi” /file-path “C:/” /s Test1, Test2, Test3
This will install NCache Cache Server on all remote machines Test1, Test2 and
Test3. Please replace the server “Test1, Test2, Test3” with your own server
names. Upon successful installation you will see a message with "Return Value:0"
.