Remove-BackingSource
This PowerShell cmdlet removes the pre-configured backing source providers (Read-through or Write-through) from the cache. Once the provider is removed, the cache will no longer perform read or write operations through the specified provider.
Remove-BackingSource -CacheName [-NoLogo] [-Port] -ProviderName -ReadThru [-Server] [-Credentials] -WriteThru
Examples
Important
Please note that either the ReadThru or WriteThru parameter must be specified when using this cmdlet.
- This command removes the pre-configured Read-through provider named MyReader from demoCache.
Remove-BackingSource -CacheName demoCache -ProviderName MyReader -ReadThru
- This command removes the pre-configured Write-through provider named MyWriter from demoCache.
Remove-BackingSource -CacheName demoCache -ProviderName MyWriter -WriteThru
- This command removes the pre-configured Write-through provider named MyWriter from demoCache existing on server 20.200.20.11.
Remove-BackingSource -CacheName demoCache -ProviderName MyWriter -WriteThru -Server 20.200.20.11
- This command removes the pre-configured Read-through provider named MyReader from demoCache using security credentials.
Remove-BackingSource -CacheName demoCache -ProviderName MyReader -ReadThru -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 which backing source will be removed. Note: The cache must already exist on the source server. |
- |
-NoLogo |
<SwitchParameter> |
Suppresses display of the logo banner. | False |
-Port |
<Integer> |
Specifies the port on which NCache Service is running. | 8250 |
-ProviderName* |
<String> |
Specifies the provider name. | - |
-ReadThru* |
<SwitchParameter> |
Specifies if provided backing source is configured for ReadThru. | False |
-Server |
<String> |
Specifies a server name where the NCache Service is running and a cache with a specified cache-name is registered. | IP of local machine |
-Credentials |
<pscredential> |
Specifies the user credentials required to authorize access for the specified operation. These credentials should belong to a user with the appropriate permissions at the node. | - |
-WriteThru* |
<SwitchParameter> |
Specifies if provided backing source is configured for WriteThru. | False |