Remote Uninstall NCache in Open Source
NCache provides another PowerShell script called UninstallNCache.ps1 that helps uninstall NCache through the silent mode by a remote computer. The UninstallNCache.ps1 script should be located at %NCHOME%/percentage/Integrations/PowerShell.
In order to remotely uninstall NCache, perform the following:
Check for PowerShell from the computer from which you want to remotely uninstall NCache.
Access the directory from %NCHOME%/Integrations/PowerShell.
Run the following commands and adjust the values according to your environment. Note that the BLANK space must be used to separate the server names that can either be computer names or systems' IP addresses. NCache is assumed to be installed on the default path i.e. C:/Program Files.
- Single Server Uninstallation
The following example uninstalls NCache on the remote machine 20.200.20.29. Please use your own server IP instead of the server IP 20.200.20.29 with your own remote machine IP.
./UninstallNCache.ps1 20.200.20.29
- Multiple Server Uninstallation
The example given below uninstalls NCache on three machines (20.200.20.29, 20.200.20.30, and 20.200.20.31). Please use your own server and client IPs instead of the server and client APIs given in the example.
./UninstallNCache.ps1 20.200.20.29 20.200.20.30 20.200.20.31
If the uninstallation is successful, you will see a message with "
Return Value:0
" or1614
.