• Webinars
  • Docs
  • Download
  • Blogs
  • Contact Us
Try Free
Show / Hide Table of Contents

Export Cache Configuration

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] [-Path] [-Port] [-Server] 

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.20.11 –Path "E:\CacheConfigs\config.xml"
  • This command generates the complete configuration file for all caches on server 20.200.20.11 at the path specified.
Export-CacheConfiguration -Server 20.200.20.11 –Path "E:\CacheConfigs\config.xml"

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
-NoLogo <SwitchParameter> Suppresses display of the logo banner. False

See Also

Set Up PowerShell Environment
Add-TestData
Clear-Cache

Back to top Copyright © 2017 Alachisoft