Share via


Read-SCVirtualizationManager

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

Syntax

Default (Default)

Read-SCVirtualizationManager
    [-VirtualizationManager] <VirtualizationManager>
    [-RunAsynchronously]
    [-PROTipID <Guid>]
    [-JobVariable <String>]
    [<CommonParameters>]

Description

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.

Examples

Example 1: Refresh all VMware vCenter Servers managed by VMM

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

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

The second command uses a ForEach loop 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 loop statement, type Get-Help about_ForEach.

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

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

The first command gets the virtualizaton manager object named VirtMgrServer01 from VMMServer01 and 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.

Parameters

-JobVariable

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PROTipID

Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.

Parameter properties

Type:Guid
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-RunAsynchronously

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-VirtualizationManager

Specifies a virtualization manager object managed by VMM.

Parameter properties

Type:VirtualizationManager
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

VirtualizationManager

This cmdlet returns a VirtualizationManager object.

Notes

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