Launch PowerShell as Administrator in Professional
To run NCache cmdlets, NCache requires the NCache PowerShell module (ncacheps) to be imported. You can launch PowerShell either through pre-imported ncacheps or import the module manually by launching standard PowerShell.
NCache PowerShell Management
Go to Start menu on the Taskbar and type NCache PowerShell Management.
Click on the search result. This will open an instance of PowerShell with ncacheps already imported, and displays a list of all NCache PowerShell cmdlets.
You can now manage NCache through PowerShell commands. Refer to NCache PowerShell Reference for a thorough look into the cmdlets provided by NCache.
You need to launch a new instance of Windows PowerShell so that the
%NCHOME%environment variable setup by NCache installation is visible. PowerShell cmdlets make use of this environment variable.
Go to Start menu on the Taskbar and type Windows PowerShell.
Right click on the Windows PowerShell result and select Run as Administrator. This launches PowerShell with Administrator privileges.
Before getting started, verify that the environment variable
$Env:NCHOMEis pointing to NCache installation directory like this,
PS C:\WINDOWS\system32> $Env:NCHOME C:\Program Files\NCache
Import NCache PowerShell Module
You may be unable to run NCache PowerShell cmdlets if the environment variable
PSModulePath has not been refreshed after the installation. Import the NCache PowerShell module (ncacheps.dll) found in the location %NCHOME%\bin\tools\ncacheps.
Execute the following command on Windows PowerShell to import the module:
Import-Module 'C:\Program Files\NCache\bin\tools\ncacheps\ncacheps.dll'
Run the following command using Command Prompt (Run as Administrator) in order to verify if the environment variable
PSModulePath has been refreshed successfully.
The path for ncacheps gets displayed when this command is executed. If the output displays
%NCHOME%\bin\tools, it means that the environment variables are refreshed.
You can now move on to managing NCache with PowerShell. Refer to NCache PowerShell Reference for full coverage of NCache cmdlets.