Set-SCStorageProvider

Set-SCStorageProvider

Modifies a storage provider object in VMM.

構文

Parameter Set: Default
Set-SCStorageProvider [-StorageProvider] <StorageProvider> [-Certificate <ClientCertificate> ] [-Description <String> ] [-JobVariable <String> ] [-Name <String> ] [-NetworkDeviceName <String> ] [-PROTipID <Guid]> ] [-RunAsAccount <RunAsAccount> ] [-RunAsynchronously] [-TCPPort <UInt32]> ] [ <CommonParameters>]

詳細説明

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

パラメーター

-Certificate<ClientCertificate>

Specifies a security certificate object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Description<String>

States a description for the specified object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-JobVariable<String>

Specifies that job progress is tracked and stored in the variable named by this parameter.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-Name<String>

Specifies the name of a VMM object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-NetworkDeviceName<String>

Specifies the name of a network device.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-PROTipID<Guid]>

Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RunAsAccount<RunAsAccount>

Specifies a Run As account that contains credentials with permission to perform this action.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-RunAsynchronously

Indicates that the job runs asynchronously so that control returns to the command shell immediately.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

-StorageProvider<StorageProvider>

Specifies a storage provider object.

エイリアス

none

必須?

true

位置は?

1

既定値

none

パイプライン入力を許可する

True (ByValue)

ワイルドカード文字を許可する

false

-TCPPort<UInt32]>

Specifies a numeric value that represents a TCP port.

エイリアス

none

必須?

false

位置は?

named

既定値

none

パイプライン入力を許可する

false

ワイルドカード文字を許可する

false

<CommonParameters>

このコマンドレットは次の共通パラメーターをサポートします。-Verbose、-Debug、-ErrorAction、-ErrorVariable、-OutBuffer、-OutVariable.詳細については、以下を参照してください。 about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216)。

入力

入力型は、コマンドレットにパイプできるオブジェクトの型です。

出力

出力型は、コマンドレットによって生成されるオブジェクトの型です。

  • StorageProvider

Example 1: Change the name of a storage provider

The first command gets the storage provider named StorProv01, and then stores it in the $Provider variable.

The second command gets Run As account RunAsAccount01, and then stores it in the $RunAsAcct variable.

The last command sets the network device name of the storage provider stored in the $Provider variable to NewStorProvName using the Run As account stored in $RunAsAcct.

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

Example 2: Change the TCP/IP port of a storage provider

The first command gets the storage provider named StorProv01, and then stores it in the $Provider variable.

The second command gets the Run As account named RunAsAccount01, and then 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 Run As account stored in $RunAsAcct.

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

関連トピック

Add-SCStorageProvider

Get-SCStorageProvider

Read-SCStorageProvider

Remove-SCStorageProvider

Get-SCRunAsAccount