Set-SCVMMManagedComputer
Set-SCVMMManagedComputer
Updates a computer managed by VMM.
Syntax
Parameter Set: Default
Set-SCVMMManagedComputer [-VMMManagedComputer] <VMMManagedComputer> -Description <String> [-JobVariable <String> ] [-PROTipID <Guid]> ] [-RunAsynchronously] [ <CommonParameters>]
Detailed Description
The Set-SCVMMManagedComputer cmdlet updates computers that are managed by Virtual Machine Manager (VMM).
Parameters
-Description<String>
Specifies a description for the managed computer that this cmdlet modifies.
Aliases |
none |
Required? |
true |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-JobVariable<String>
Specifies that job progress is tracked and stored in the variable named by this parameter.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-PROTipID<Guid]>
Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.
Aliases |
none |
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.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-VMMManagedComputer<VMMManagedComputer>
Specifies a computer object that is managed by VMM.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Outputs
The output type is the type of the objects that the cmdlet emits.
- VMMManagedComputer
Examples
Example 1: Update the description of a managed computer
This command gets the managed computer object named SPF.Contoso.com, and uses the pipeline operator to pass the object to Set-SCVMMManagedComputer. That cmdlet updates the description of the computer.
PS C:\> Get-SCVMMManagedComputer -ComputerName "SPF.Contoso.com" | Set-SCVMMManagedComputer -Description "My CPS SPF-02"