The Remove-SCVirtualizationManager cmdlet removes one or more VMware vCenter Server objects from System Center Virtual Machine Manager (VMM). This cmdlet deletes the vCenter Server object from the Virtual Machine Manager database and also removes all imported ESX host objects and virtual machine objects associated with the vCenter Server.
When you remove a VirtualCenter Server, the cmdlet does not make any changes within the vCenter Server and does not remove any hosts or virtual machines from the vCenter Server.
For more information about Remove-SCVirtualizationManager, type: "Get-Help Remove-SCVirtualizationManager -online".
Parameters
VirtualizationManager
Required?
true
Accept Pipeline Input?
true (ByValue)
Position?
0
Specifies a virtualization manager object managed by VMM.
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 virtualization manager object, which can be retrieved by using the Get-SCVirtualizationManager cmdlet.
The first command gets the virtualization manager object named VirtMgrServer01 from VMMServer01 and stores the object in the $VirtMgrServer variable.
The second command removes the vCenter Server object, as well as all associated host and virtual machine objects, from VMM.
2: Remove a set of VMware vCenter
Servers from VMM.
The first command gets all virtualization manager objects whose name includes the string “Server” and stores the objects in $VirtManagers.
The second command removes each object in $VirtManagers from VMM, as well as all associated host and virtual machine objects.
For more information about the standard Windows PowerShell foreach loop statement, type: Get-Help about_ForEach.