Set-SCVMMManagedComputer

Updates a computer managed by VMM.

Syntax

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

Description

The Set-SCVMMManagedComputer cmdlet updates computers that are managed by Virtual Machine Manager (VMM).

Examples

Example 1: Update the description of a managed computer

PS C:\> Get-SCVMMManagedComputer -ComputerName "SPF.Contoso.com" | Set-SCVMMManagedComputer -Description "My CPS SPF-02"

This command gets the managed computer object named SPF.Contoso.com and uses the pipeline operator to pass the object to Set-SCVMMManagedComputer, which updates the description of the computer.

Parameters

-Description

Specifies a description for the managed computer.

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

This cmdlet returns a **VMMManagedComputer** object.