Install NCache PowerShell Module without NCache Installation
NCache allows you to install NCache Powershell module on your machines without installing NCache at all. This module contains all cmdlets as provided in NCache's shipped PowerShell module ncacheps. You can use these cmdlets to manage, configure and test NCache from a remote machine without any installation.
Please note that this is an alpha release and supports only Windows environment for now. Moreover, some of the commands that do not take -Server parameter will not work with this module. We are working to update this and provide Linux support in the upcoming releases.
To install NCache PowerShell Module:
Step 1: Run PowerShell as Administrator
Search for "Windows PowerShell" and click on Run as Administrator.
Set script execution policy to
RemoteSignedto allow remote execution:
Step 2: Install NCache Modules
Execute the following commands in PowerShell according to your required NCache release module:
- To use latest released modules:
Install-Module -Name NCache
Install-Module -Name NCache.Professional
Install-Module -Name NCache.OpenSource
- To use a specific version of NCache module:
Install-Module -Name NCache -RequiredVersion 5.0.3
In case of error in the aforementioned steps, execute the following commands one by one:
Install-Module -Name PackageManagement -Repository PSGallery -Force
Install-Module -Name PowerShellGet -Repository PSGallery -Force
Restart PowerShell as Administrator after executing these commands.
Step 3: Verify Successful Module Installation
To verify that the module is installed successfully, you can execute the following commands:
- The following command displays the list of all modules installed on the machine. Verify that you see NCache listed with the proper version.
- To list all commands associated with the NCache module you just installed, execute the required command in PowerShell according to the NCache edition:
Get-Command –Module NCache
Get-Command –Module NCache.Professional
Get-Command –Module NCache.OpenSource
- You can also verify by searching "NCache" on https://www.powershellgallery.com/.
Step 4: Use NCache PowerShell Cmdlets
- To get help on using the tools, execute the following command in PowerShell or refer to our PowerShell Reference:
Get-Help <CmdletName> –Full
The following example shows how to get complete help for
Get-Help Get-Caches –Full