Export-CacheConfiguration
Export-CacheConfiguration
cmdlet enables the user to get the configuration for
the specified cache to the path specified by the user.
Export-CacheConfiguration [-Name] [-NoLogo] [-Password] [-Path] [-Port] [-Server] [-UserId]
These properties are explained in detail in the Properties section.
Examples
- This command generates the configuration file for the cache named demoCache at the specified path.
Export-CacheConfiguration -Name demoCache -Server 20.200.21.11 –Path C:\Desktop\config.xml
- This command generates the configuration file for the cache named demoCache at the path specified on the port number 8251 since the user is not using the default port.
Export-CacheConfiguration demoCache -Server 20.200.21.11 –Path C:\Desktop\config.xml –Port 8251
Properties
Note: The parameters with asterisk (*) on their names are the required parameters and the rest are optional.
Parameters | Data Types | Description | Default Value |
---|---|---|---|
-Name* |
<String> |
Specifies the name of the cache for which the configuration file is to be generated. | - |
-Path* |
<String> |
Specifies the path where the user wants the configuration file to be placed after generation. In case of no path provided the user will be prompted. | - |
-Server |
<String> |
Specifies the NCache server name or ip as per user requirement. | - |
-Port |
<Integer> |
Specifies the server port where NCache server is listening. | 8250 |
-UserId |
<String> |
Specifies the User Id used to authorize a user if security is enabled on cache server. This User Id must be the same as the active directory user credentials. | - |
-Password |
<String> |
Specifies the password against the user Id; to authorize a user if security is enabled on cache server. This password must be the same as active directory password. | - |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |
See Also
Set Up PowerShell Environment
Add-TestData
Clear-Cache
Export-CacheData
TroubleShooting