Revoke-SCMACAddress

Returns an allocated MAC address to the MAC address pool.

Description

The Revoke-SCMACAddress cmdlet returns an allocated MAC address to the MAC address pool.

For information about granting MAC addresses, type: "Get-Help Grant-SCMACAddress -detailed".

For more information about Revoke-SCMACAddress, type: "Get-Help Revoke-SCMACAddress -online".

Parameters

AllocatedMACAddress

Required? true
Accept Pipeline Input? true (ByValue)
Position? 0
Specifies a Media Access Control (MAC) address that has been allocated from 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.

ReturnToPool

Required? false
Accept Pipeline Input? false
Position? named
Indicates whether an IP address or MAC address is returned to its address pool. By default, this value is set to True.

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.

Examples

1: Return an allocated MAC address to the MAC address pool.
PS C:\> $HostGroup = Get-SCVMHostGroup | where { $_.Path -eq "All Hosts\HostGroup02\Production" }
PS C:\> $MACAddressPool = Get-SCMACAddressPool -VMHostGroup $HostGroup
PS C:\> $MACAddress = Get-SCMACAddress -MACAddressPool $MACAddressPool[0]
PS C:\> Revoke-SCMACAddress $MACAddress[0]
The first command gets the host group object at path "All Hosts\HostGroup02\Production" and stores the object in the $HostGroup variable.

The second commmand gets the MAC address pools for the host group stored in $HostGroup and stores the objects in the $MACAddressPool array.

The third command gets the allocated MAC addresses from the first MAC address pool stored in $MACAddressPool and stores the objects in $MACAddress.

The last command revokes the first MAC address stored in $MACAddress.

See Also