Set-SCVirtualizationManager

Set-SCVirtualizationManager

Changes the properties of a VMware vCenter Server that is managed by VMM.

構文

Parameter Set: Default
Set-SCVirtualizationManager [-VirtualizationManager] <VirtualizationManager> [-Certificate <ClientCertificate> ] [-Credential <VMMCredential> ] [-EnableSecureMode <Boolean> ] [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [-TCPPort <UInt32]> ] [ <CommonParameters>]

詳細説明

The Set-SCVirtualizationManager cmdlet changes one or more properties of a VMware vCenter Server that is managed by Virtual Machine Manager (VMM). A vCenter Server manages VMware ESX hosts and VMware-based virtual machines.

Properties that you can change include settings for the TCP port used to connect to the vCenter Server, credentials used to access the vCenter Server, and updating a vCenter Server security certificate.

If a security certificate for a vCenter Server expires or a self-signed certificate is replaced by a certificate from a third-party Certification Authority (CA), you must update both the vCenter Server and VMM:

-- First, replace the current vCenter certificate with the new certificate in vCenter. Refer to the VMware documentation for instructions.

-- Next, update the certificate in VMM by importing the new certificate into VMM. See example 3 for this cmdlet.

For more information about including a VMware VirtualCenter Server as a virtualization manager in a Virtual Machine Manager environment, type Get-Help Add-SCVirtualizationManager -detailed.

パラメーター

-Certificate<ClientCertificate>

Specifies a security certificate object.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-Credential<VMMCredential>

Specifies a credential object or, for some cmdlets, a Run As account object that contains the user name and password of an account that has permission to perform this action. Or, in the case of Restart-SCJob, has permission to complete a restarted task.

For more information about the PSCredential object, type Get-Help Get-Credential. For more information about Run As accounts, type Get-Help New-SCRunAsAccount.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-EnableSecureMode<Boolean>

Indicates whether VMM communicates with VMware ESX hosts and Citrix XenServer hosts in secure mode. The default value is $True.

エイリアス

SecureMode

必須?

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

-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

-RunAsynchronously

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

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-TCPPort<UInt32]>

Specifies a numeric value that represents a TCP port.

エイリアス

none

必須?

false

位置は?

named

既定値

none

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

false

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

false

-VirtualizationManager<VirtualizationManager>

Specifies a virtualization manager object managed by VMM.

エイリアス

none

必須?

true

位置は?

1

既定値

none

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

True (ByValue)

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

false

<CommonParameters>

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

入力

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

出力

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

  • VirtualizationManager

  • This command requires a VMM virtualization manager object, which can be retrieved by using the Get-SCVirtualizationManager cmdlet.

Example 1: Specify new credentials for a virtualization manager

The first command gets the virtualization manager object named VirtMgrServer01 from the VMM database, and then stores the object in the $VirtManager variable.

The second command gets the Run As account named Host Computer Account 04, and then stores the account in the $Credential variable.

The last command changes the stored credentials for VirtMgrServer01 that are used when VMM connects to the external service.

PS C:\> $VirtManager = Get-SCVirtualizationManager -ComputerName "VirtMgrServer01.Contoso.com"
PS C:\> $Credential = Get-SCRunAsAccount -Name "RunAsAccount04"
PS C:\> Set-SCVirtualizationManager -VirtualizationManager $VirtManager -Credential $Credential

関連トピック

Get-SCVirtualizationManager

Add-SCVirtualizationManager

Read-SCVirtualizationManager

Remove-SCVirtualizationManager

Restart-SCJob

Get-SCRunAsAccount