Read-SCVirtualizationManager

Read-SCVirtualizationManager

Refreshes the properties of a VMware vCenter Server so that the VMM console displays updated information about vCenter Server entities.

構文

Parameter Set: Default
Read-SCVirtualizationManager [-VirtualizationManager] <VirtualizationManager> [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [ <CommonParameters>]

詳細説明

The Read-SCVirtualizationManager cmdlet refreshes the properties of a VMware vCenter Server managed by Virtual Machine Manager (VMM) so that the VMM console displays updated information about vCenter Server entities.

パラメーター

-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

-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 cmldet requires a VMM virtualization manager object, which can be retrieved by using the Get-SCVirtualizationManager cmdlet.

Example Example 1: Refresh all VMware vCenter Servers managed by VMM.

The first command retrieves all virtualization manager objects from the VMM database on VMMServer01, and then stores the returned objects in the $VirtManagers array.

The second command uses a Foreach statement to refresh the properties of the objects stored in $VirtManagers so that current information about these virtualization managers displays in the VMM console.

For more information about the standard Windows PowerShell Foreach statement, type Get-Help about_ForeEache.

PS C:\> $VirtManagers = Get-SCVirtualizationManager -VMMServer "VMMServer01.Contoso.com"
PS C:\> Foreach ($VManager in $VirtManagers) {Read-SCVirtualizationManager -VirtualizationManager $VManager}

Example 2: Refresh a specific VMware vCenter Server managed by VMM

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

The second command refreshes the properties for the object stored in $VirtManager so that current information about this virtualization manager displays in the VMM console.

PS C:\> $VirtManager = Get-SCVirtualizationManager -VMMServer "VMMServer01.Contoso.com" -ComputerName "VirtMgrServer01.Contoso.com"
PS C:\> Read-SCVirtualizationManager -VirtualizationManager $VirtManager

関連トピック

Get-SCVirtualizationManager

Add-SCVirtualizationManager

Remove-SCVirtualizationManager

Set-SCVirtualizationManager