PowerShell Logo Small


This is the built-in help made by Microsoft for the command 'Set-NetVirtualizationProviderAddress', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.


Changes a VLAN ID or prefix length for a Provider Address.


Set-NetVirtualizationProviderAddress [-AddressState <AddressState[]>] [-AsJob] [-CimSession <CimSession[]>] [-InterfaceIndex <UInt32[]>] [-MACAddress <String>] [-PassThru]
[-PrefixLength <Byte>] [-ProviderAddress <String[]>] [-ThrottleLimit <Int32>] [-VlanID <UInt16>] [<CommonParameters>]
Set-NetVirtualizationProviderAddress [-AsJob] [-CimSession <CimSession[]>] [-MACAddress <String>] [-PassThru] [-PrefixLength <Byte>] [-ThrottleLimit <Int32>] [-VlanID
<UInt16>] -InputObject <CimInstance[]> [<CommonParameters>]

Search powershellhelp.space


The Set-NetVirtualizationProviderAddress cmdlet changes a virtual local area network (VLAN) ID or prefix length for Provider Addresses used with Microsoft® Hyper-V® Server
2012 Network Virtualization. For more information, see Network Virtualization technical details (http://technet.microsoft.com/library/jj134174.aspx) on TechNet.

You can specify which Provider Addresses to modify by using address state, interface index, or IP address, or you can use the Get-NetVirtualizationProviderAddress cmdlet to
get Provider Addresses to modify.



Online Version: http://go.microsoft.com/fwlink/?LinkId=289198




Example 1: Change a virtual LAN ID

PS C:\> Set-NetVirtualizationProviderAddress -ProviderAddress "" -InterfaceIndex 17 -VlanID 201

This command changes the virtual LAN ID for the Provider Address on the the interface that has the Index 17.

Example 2: Change a virtual LAN ID for specified Provider Addresses

PS C:\>Get-NetVirtualizationProviderAddress -InterfaceIndex 23 | Set-NetVirtualizationProviderAddress -VlanID 20

This command uses the Get-NetVirtualizationProviderAddress cmdlet to get all the Provider Addresses for the interface that has the index 23, and then passes them to the
Set-NetVirtualizationProviderAddress cmdlet by using the pipe operator. The command assigns a value of 20 for the virtual LAN ID of all the Provider Address for the