Read-SCVMMManagedComputer

Refreshes a computer that is managed by VMM.

Syntax

Read-SCVMMManagedComputer [-VMMManagedComputer] <VMMManagedComputer> [-JobVariable <String>] [-PROTipID <Guid>]
 [-RunAsynchronously] [<CommonParameters>]

Description

The Read-SCVMMManagedComputer cmdlet refreshes computers managed by Virtual Machine Manager (VMM).

Examples

Example 1: Refresh a managed computer object

PS C:\> Get-SCVMMManagedComputer -ComputerName "SPF.Contoso.com" | Read-SCVMMManagedComputer

This command gets the computer object named SPF.Contoso.com and then uses the pipeline operator to pass the object to Read-SCVMMManagedComputer, which refreshes the computer.

Parameters

-JobVariable

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

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters: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.

Type:Guid
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RunAsynchronously

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

Type:SwitchParameter
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMManagedComputer

Specifies a computer object that is managed by VMM.

Type:VMMManagedComputer
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

VMMManagedComputer

The cmdlet returns a **VMMManagedComputer** object.