Disable-AutoStartCache
The Disable-AutoStartCache PowerShell cmdlet disables Auto Start for a specified cache. When Auto Start is disabled, the cache does not start automatically when the machine hosting the NCache Service starts.
Disable-AutoStartCache -CacheName \
[-Server] [-Credentials]
Examples
- This command disables Auto Start for the cache named demoCache on the local server. The cache no longer starts automatically when the machine hosting the NCache Service starts.
Disable-AutoStartCache -CacheName demoCache
- This command disables Auto Start for demoCache and ClusteredCache by specifying both cache names as a comma-separated value.
Disable-AutoStartCache -CacheName "ClusteredCache,demoCache"
- This command disables Auto Start for the cache named demoCache on the remote server 20.200.20.11 using the specified credentials for authentication.
Disable-AutoStartCache -CacheName demoCache -Server 20.200.20.11 \
-Credentials (Get-Credential john_smith)
Properties
Note
The parameters with asterisk (*) on their names are required parameters, and the rest are optional.
| Parameters | Data Types | Description | Default Value |
|---|---|---|---|
-CacheName* |
<String> |
Specifies the name of the cache for which Auto Start should be disabled. | - |
-Server |
<String> |
Specifies the IP address of the server where the target cache is hosted. | IP of local machine |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize disabling Auto Start on the specified server. | - |