Remove-SCMACAddressPool
Deletes a MAC address pool.
Syntax
Remove-SCMACAddressPool
[-VMMServer <ServerConnection>]
[-MACAddressPool] <MACAddressPool>
[-RunAsynchronously]
[-PROTipID <Guid>]
[-JobVariable <String>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
The Remove-SCMACAddressPool cmdlet deletes a Virtual Machine Manager (VMM) MAC (Media Access Control) address pool.
Examples
Example 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" that is 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.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-JobVariable
Specifies a variable in which job progress is tracked and stored.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MACAddressPool
Specifies a MAC address pool.
Type: | MACAddressPool |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-PROTipID
Specifies the ID of the Performance and Resource Optimization tip (PRO tip) that triggered this action. This parameter lets you audit PRO tips.
Type: | Guid |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-RunAsynchronously
Indicates that the job runs asynchronously so that control returns to the command shell immediately.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VMMServer
Specifies a VMM server object.
Type: | ServerConnection |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
MACAddressPool
This cmdlet returns a MACAddressPool object.
Notes
- This cmdlet requires a VMM MAC address pool object, which can be retrieved by using the Get-SCMACAddressPool cmdlet.