This is the built-in help made by Microsoft for the command 'Set-NetVirtualizationProviderAddress', in PowerShell version 3 - as retrieved from
Windows version 'Microsoft Windows Server 2012 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 [<SwitchParameter>]] [-CimSession <CimSession[]>]
[-InterfaceIndex <UInt32[]>] [-PassThru [<SwitchParameter>]] [-PrefixLength <Byte>] [-ProviderAddress <String[]>] [-ThrottleLimit <Int32>]
[-VlanID <UInt16>] [<CommonParameters>]
Set-NetVirtualizationProviderAddress [-AsJob [<SwitchParameter>]] [-CimSession <CimSession[]>] [-PassThru [<SwitchParameter>]] [-PrefixLength
<Byte>] [-ThrottleLimit <Int32>] [-VlanID <UInt16>] -InputObject <CimInstance[]> [<CommonParameters>]
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.
<
Get-NetVirtualizationProviderAddress
New-NetVirtualizationProviderAddress
Remove-NetVirtualizationProviderAddress
<
Example 1: Change a virtual LAN ID
PS C:\> Set-NetVirtualizationProviderAddress -ProviderAddress "192.168.2.3" -InterfaceIndex 17 -VlanID 201
This command changes the virtual LAN ID for the Provider Address 192.168.2.3 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 interface.