Remove-SCVMXComputerConfiguration

Removes a VMX computer configuration object from VMM.

Description

The Remove-SCVMXComputerConfiguration removes one or more VMX computer configuration objects from the System Center Virtual Machine Manager (VMM) database. 

This cmdlet returns the object upon success (with the property MarkedForDeletion set to TRUE) or returns an error message upon failure.

For more information about Remove-SCVMXComputerConfiguration, type: "Get-Help Remove-SCVMXComputerConfiguration -online".

Parameters

VMXComputerConfiguration

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a VMX computer configuration object.

Confirm

Required? false
Accept Pipeline Input? false
Position? named
Prompts for confirmation before running the command.

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 VMX computer configuration object, which can be retrieved by using the Get-SCVMXComputerConfiguration cmdlet.

Examples

1: Remove all VMX computer configurations without being prompted to confirm each deletion.
PS C:\> $VMXComputerConfigs = Get-SCVMXComputerConfiguration -VMMServer "VMMServer01.Contoso.com"
PS C:\> $VMXComputerConfigs | Remove-SCVMXComputerConfiguration
The first command retrieves all VMX computer configuration objects from the VMM database on VMMServer01 and stores these objects in the$VMXComputerConfigs object array. 

The second command passes each object in $VMXComputerConfigs to Remove-VMXComputerConfiguration, which removes each VMX computer configuration object.

See Also