< Back

Remove-NetVirtualizationProviderAddress

Sat Jan 18, 2020 5:02 pm

NAME Remove-NetVirtualizationProviderAddress



SYNOPSIS

Deletes Provider Addresses.





SYNTAX

Remove-NetVirtualizationProviderAddress [-AddressState <AddressState[]>] [-CimSession <CimSession[]>]

[-InterfaceIndex <UInt32[]>] [-MACAddress <String[]>] [-ManagedByCluster <Boolean[]>] [-PassThru] [-PrefixLength

<Byte[]>] [-ProviderAddress <String[]>] [-ThrottleLimit <Int32>] [-VlanID <UInt16[]>] [<CommonParameters>]



Remove-NetVirtualizationProviderAddress [-CimSession <CimSession[]>] [-PassThru] [-ThrottleLimit <Int32>]

[<CommonParameters>]





DESCRIPTION

The Remove-NetVirtualizationProviderAddress cmdlet deletes Provider Addresses configured in Microsoft???? Hyper-V????

Server 2016 Network Virtualization. A Provider Address is an IPv4 or IPv6 address that Network Virtualization uses

for multiple virtual Customer Addresses. For more information, see Network Virtualization technical details

(http://technet.microsoft.com/library/jj134174.aspx) on TechNet.



You can specify which Provider Addresses to delete by using address state, interface index, prefix length, IP

address, or VLAN ID, or you can use the Get-NetVirtualizationProviderAddress cmdlet to get Provider Addresses to

delete.



You can use this cmdlet to remove a Provider Address when no virtual machines use that address. If you deleted or

migrated all the virtual machines from a Hyper-V Server 2016 host, you could then remove the Provider Address.





PARAMETERS

-AddressState [<AddressState[]>]

Specifies an array of states of Provider Addresses. The acceptable values for this parameter are:



-- Preferred. The address is unique.

-- Tentative. The address is not yet verified.

-- Duplicate. There is a duplicate address on the network.

-- Invalid. The address lifetime has expired.

-- Deprecated. The address cannot start new connections.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-CimSession [<CimSession[]>]

Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such

as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local

computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-InterfaceIndex [<UInt32[]>]

Specifies an array of indexes for network interfaces that have Hyper-V Server 2016 Network Virtualization

enabled.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-MACAddress [<String[]>]

Specifies an array of media access control (MAC) addresses that corresponds to the Provider Address.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ManagedByCluster [<Boolean[]>]

Specifies an array of Boolean values that determines whether a highly available Provider Address configuration

entry exists on a Hyper-V Network Virtualization gateway. If you use a Provider Address cluster resource, this

value is $True. Otherwise, the value is $False. This parameter is a read-only parameter that is used by an

administrator to diagnose problems.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-PassThru [<SwitchParameter>]

Returns an object representing the item with which you are working. By default, this cmdlet does not generate

any output.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-PrefixLength [<Byte[]>]

Specifies an array of lengths of IP prefixes.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ProviderAddress [<String[]>]

Specifies an array of IP addresses. You can use IPv4 or IPv6 addresses.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-ThrottleLimit [<Int32>]

Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this

parameter is omitted or a value of 0 is entered, then Windows PowerShell???? calculates an optimum throttle limit

for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies

only to the current cmdlet, not to the session or to the computer.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



-VlanID [<UInt16[]>]

Specifies an array of IDs for VLANs for Provider Addresses.



Required? false

Position? named

Default value none

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS









OUTPUTS









Example 1: Remove a Provider Address



PS C:\\> Remove-NetVirtualizationProviderAddress -ProviderAddress "2001:DB8:11:22:33:44:55:6"



This command deletes the Provider Address 2001:DB8:11:22:33:44:55:6 on the current host.





Example 2: Remove Provider Addresses for an interface



PS C:\\>Remove-NetVirtualizationProviderAddress -InterfaceIndex 13



This command removes all the Provider Addresses on the interface that have an index of 13.







RELATED LINKS

Get-NetVirtualizationProviderAddress

New-NetVirtualizationProviderAddress

Set-NetVirtualizationProviderAddress