Set-SCVMMManagedComputer

Updates a computer managed by VMM.

Syntax

Set-SCVMMManagedComputer
   [-VMMManagedComputer] <VMMManagedComputer>
   -Description <String>
   [-RunAsynchronously]
   [-PROTipID <Guid>]
   [-JobVariable <String>]
   [<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
Position:Named
Default value:None
Required:True
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
Position:Named
Default value:None
Required:False
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
Position:Named
Default value:None
Required:False
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
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VMMManagedComputer

Specifies a computer object that is managed by VMM.

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

Outputs

VMMManagedComputer

This cmdlet returns a VMMManagedComputer object.