Install-NCacheModule
This PowerShell cmdlet enables the user to deploy provider assemblies from the specified assembly path to the deployment folder (%NCHOME%\deploy).
Install-NCacheModule -AssemblyPath -CacheName [-NoLogo] [-Port] [-Server] [-Credentials]
Examples
- This command deploys the assembly for demoCache.
Install-NCacheModule -CacheName demoCache -AssemblyPath C:\Provider.dll
- This command deploys the assembly for a cache named demoCache on server 20.200.20.11.
Install-NCacheModule -CacheName demoCache -AssemblyPath C:\Provider.dll –Server 20.200.20.11
- This command deploys the assembly for a cache named demoCache on server 20.200.20.11 using security credentials.
Install-NCacheModule -CacheName demoCache -AssemblyPath C:\Provider.dll -Server 20.200.20.11 -Credentials(Get-Credential john_smith)
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
| Parameters |
Data Types |
Description |
Default Value |
-CacheName* |
<String> |
Specifies the name of the cache for assembly deployment. |
- |
-AssemblyPath* |
<String> |
Specifies the path of the assembly to be imported. |
- |
-Server |
<String> |
Specifies the NCache server name or ip as per user requirement. |
- |
-Port |
<Integer> |
Specifies the server port where the NCache Service is listening. |
8250 |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. |
False |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user who has appropriate permissions at the node. |
- |
install-ncachemodule -assemblypath -cachename [-nologo] [-port] [-server] [-userid] [-password]
Examples
- This command deploys the assembly for demoCache.
install-ncachemodule -cachename demoCache -assemblypath /usr/Provider.dll
- This command deploys the assembly for a cache named demoCache on server 20.200.20.11.
install-ncachemodule -cachename demoCache -assemblypath /usr/Provider.dll –server 20.200.20.11
- This command deploys the assembly for a cache named demoCache on server 20.200.20.11 using security credentials.
install-ncachemodule -cachename demoCache -assemblypath /usr/Provider.dll -server 20.200.20.11 -userid john_smith -password pass123
Properties
Note
The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
| Parameters |
Data Types |
Description |
Default Value |
-cachename* |
<String> |
Specifies the name of the cache for assembly deployment. |
- |
-assemblypath* |
<String> |
Specifies the path of the assembly to be imported. |
- |
-server |
<String> |
Specifies the NCache server name or ip as per user requirement. |
- |
-port |
<Integer> |
Specifies the server port where the NCache Service is listening. |
8250 |
-nologo |
<SwitchParameter> |
Suppresses display of the logo banner. |
False |
-userid |
<String> |
Specifies the user id used to authorize the user for this operation. It is required in case security is enabled on Cache Server. This user id must be the active directory. |
- |
-password |
<String> |
Specifies the password of the user that is used to authorize the user for this operation. It is required in case security is enabled on Cache Server. This password must be the same as the active directory user password. |
- |