Remove-SCMACAddressPool

Deletes a MAC address pool.

Description

The Remove-SCMACAddressPool cmdlet deletes a System Center Virtual Machine Manager (VMM) MAC address pool.

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

Parameters

MACAddressPool

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a MAC address pool.

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. 

VMMServer

Required? false
Accept Pipeline Input? true (ByValue)
Position? named
Specifies a VMM server object.
Requires a VMM MAC address pool object, which can be retrieved by using the Get-SCMACAddressPool cmdlet.

Examples

1: Delete a MAC address pool.
PS C:\> $HostGroup = Get-SCVMHostGroup | where { $_.Path -eq "All Hosts\HostGroup02\Production" }
PS C:\> $MACPool = Get-SCMACAddressPool -VMHostGroup $HostGroup -Name "MAC Address Pool 01"
PS C:\> Remove-SCMACAddressPool -MACAddressPool $MACPool

The first command gets the host group named "All Hosts\HostGroup02\Production" and stores it in the $HostGroup variable.

The second command gets the MAC address pool named "MAC Address Pool 01" associated with the host group stored in the $HostGroup variable (including its parent host group if inheritance is enabled) and stores it in the $MACPool variable.

The third command deletes the MAC address pool stored in the $MACPool variable.

See Also