Removes a virtual machine configuration object from VMM.
Description
The Remove-SCVMConfiguration cmdlet removes a virtual machine configuration object from System Center Virtual Machine Manager (VMM).
For more information about Remove-SCVMConfiguration, type: "Get-Help Remove-SCVMConfiguration -online".
Parameters
VMConfiguration
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
0
Specifies a virtual machine configuration object.
JobVariable
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies that job progress is tracked and stored in the variable named by this parameter.
PROTipID
Required?
false
Accept Pipeline Input?
false
Position?
named
Specifies the ID of the PRO tip that triggered this action. This allows for auditing of PRO tips.
RunAsynchronously
Required?
false
Accept Pipeline Input?
false
Position?
named
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
Requires a VMM virtual machine configuration object, which can be objtained by using the Get-SCVMConfiguration cmdlet.
The first command gets all virtual machine configuration objects, selects the object named VMConfig01 and then stores that virtual machine configuration object in the $VMConfig variable.
The second command removes the virtual machine configuration in $VMConfig (VMConfig01).