Remove-SCStorageProvider

Removes a storage provider from VMM. 

Description

The Remove-SCStorageProvider cmdlet removes a storage provider from System Center Virtual Machine Manager (VMM). Removing a storage provider also removes any associated array, pool, and logical unit information exposed by the provider. However, this operation will not change or delete any data on the logical units.

For more information about Remove-SCStorageProvider, type: "Get-Help Remove-SCStorageProvider -online".

Parameters

StorageProvider

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a storage provider object.

JobVariable

Required? false
Accept Pipeline Input? false
Position? named
Specifies that job progress is tracked and stored in the variable named by this parameter. 

PROTipID

Required? false
Accept Pipeline Input? false
Position? named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

RunAsynchronously

Required? false
Accept Pipeline Input? false
Position? named
Indicates that the job runs asynchronously so that control returns to the command shell immediately. 

Examples

1: Remove a storage provider.
PS C:\> $Provider = Get-SCStorageProvider -Name "StorProv01.Contoso.com"
PS C:\> Remove-SCStorageProvider -StorageProvider $Provider 
The first command gets the storage provider named StorProv01 and stores it in the $Provider variable.

The second command deletes the storage provider stored in the $Provider variable.

See Also