Install PowerShell without NCache Installation
NCache allows you to install the NCache Powershell module on your machines without installing NCache at all. This module contains all the cmdlets as provided in the PowerShell module ncacheps that is shipped with NCache. You can use these cmdlets to manage, configure and test NCache from a remote machine without any 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:
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
RemoteSigned
to 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.Community
Install-Module -Name NCache.OpenSource
- To use a specific version of NCache module:
Install-Module -Name NCache -RequiredVersion 5.3.5
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.Community
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