Set-SCStorageProvider

Modifies a storage provider object in VMM.

Description

The Set-SCStorageProvider cmdlet modifies a storage provider object in System Center Virtual Machine Manager (VMM).

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

Parameters

StorageProvider

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

Certificate

Required? false
Accept Pipeline Input? false
Position? named
Specifies a security certificate object.

Description

Required? false
Accept Pipeline Input? false
Position? named
States a description for the specified 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. 

Name

Required? false
Accept Pipeline Input? false
Position? named
Specifies the name of a VMM object.

NetworkDeviceName

Required? false
Accept Pipeline Input? false
Position? named
Specifies the name of a network device.

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.

RunAsAccount

Required? false
Accept Pipeline Input? false
Position? named
Specifies a Run As account that contains credentials with permission to perform this action.

RunAsynchronously

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

TCPPort

Required? false
Accept Pipeline Input? false
Position? named
Specifies a numeric value that represents a TCP port. 

Examples

1: Change the name of a storage provider.
PS C:\> $Provider = Get-SCStorageProvider -Name "StorProv01.Contoso.com"
PS C:\> $RunAsAcct = Get-SCRunAsAccount -Name "RunAsAccount01"
PS C:\> Set-SCStorageProvider -StorageProvider $Provider -NetworkDeviceName "http://StorProv01.Contoso.com" -Name "NewStorProvName.Contoso.com" -RunAsAccount $RunAsAcct
The first command gets the storage provider named StorProv01 and stores it in the $Provider variable.

The second command gets RunAs account RunAsAccount01 and stores it in the $RunAsAcct variable.

The last command sets the network divice name of the storage provider stored in the $Provider variable to NewStorProvName using the RunAs account stored in $RunAsAcct.
2: Change the TCP/IP port of a storage provider.
PS C:\> $Provider = Get-SCStorageProvider -Name "StorProv01.Contoso.com"
PS C:\> $RunAsAcct = Get-SCRunAsAccount -Name "RunAsAccount01"
PS C:\> Set-SCStorageProvider -StorageProvider $Provider -TCPPort 40441 -RunAsAccount $RunAsAcct
The first command gets the storage provider named StorProv01 and stores it in the $Provider variable.

The second command gets the RunAs account named RunAsAccount01 and stores the object in the $RunAsAcct variable.

The third command changes the TCP/IP port of the storage provider stored in $Provider to 40441 using the RunAs account stored in $RunAsAcct.

See Also