Revoke-SCMACAddress

Returns an allocated MAC address to the MAC address pool.

Syntax

Revoke-SCMACAddress [-AllocatedMACAddress] <AllocatedMACAddress> [-JobVariable <String>] [-PROTipID <Guid>]
 [-ReturnToPool <Boolean>] [-RunAsynchronously] [-VMMServer <ServerConnection>] [<CommonParameters>]

Description

The Revoke-SCMACAddress cmdlet returns an allocated MAC (Media Access Control) address to the MAC address pool.

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

Examples

Example 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.

Parameters

-AllocatedMACAddress

Specifies a MAC address that has been allocated from a MAC address pool.

Type:AllocatedMACAddress
Required:True
Position:0
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-JobVariable

Specifies a variable in which job progress is tracked and stored.

Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ReturnToPool

Indicates whether an IP address or MAC address is returned to its address pool. By default, this value is set to $True.

Type:Boolean
Required:False
Position:Named
Default value:None
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
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-VMMServer

Specifies a Virtual Machine Manager (VMM) server object.

Type:ServerConnection
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Outputs

CloudPairing[]

This cmdlet returns an array of **CloudPairing** objects.