Install PowerShell without NCache Installation
The NCache PowerShell module allows users to manage NCache clusters without the need for a full server or client installation. This lightweight deployment provides access to standard NCache cmdlets for cache management, making it ideal for use without the overhead of a complete NCache setup. The module includes all cmdlets from the ncacheps PowerShell module shipped with NCache, enabling remote management, configuration, and testing of NCache without requiring local installation.
Important
The NCache module is supported in both Windows and Linux environments. Commands that do not take the -Server parameter will not work with this module.
To install NCache PowerShell Module, follow the steps below:
Step 1: Run PowerShell as Administrator
Search for Windows PowerShell and right-click on the Windows PowerShell result and select Run as Administrator. This launches PowerShell with administrative privileges.
Set script execution policy to
RemoteSignedto allow for remote execution:
Set-ExecutionPolicy RemoteSigned
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.OpenSource
- To use a specific version of NCache module:
Install-Module -Name NCache -RequiredVersion 5.3.6
Troubleshooting
If the aforementioned steps throw an error, then execute the following commands one by one:
Install-Module -Name PackageManagement -Repository PSGallery -Force
Install-Module -Name PowerShellGet -Repository PSGallery -Force
Important
Restart PowerShell as an Administrator after executing these commands.
Step 3: Verify Successful Module Installation
To verify that the module is successfully installed, you can execute the following commands:
- The following command displays the list of all modules installed on the machine. Verify that you see the proper version of NCache listed.
Get-InstalledModule
- 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.OpenSource
- You can also verify by searching "NCache" on PowerShell Gallery.
Step 4: Use NCache PowerShell Cmdlets
To get help when using these tools, execute the following command in PowerShell or refer to our PowerShell Reference.
Get-Help <CmdletName> –Full
The following example demonstrates how to refer to the complete guidelines for the Get-Caches tool.
Get-Help Get-Caches –Full