PowerShell Logo Small

Set-NetVirtualizationProviderAddress



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.

SYNOPSIS

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

SYNTAX


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

DESCRIPTION


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.



<

RELATED LINKS

Online Version: http://go.microsoft.com/fwlink/?LinkId=289198
Get-NetVirtualizationProviderAddress
New-NetVirtualizationProviderAddress
Remove-NetVirtualizationProviderAddress

REMARKS

<

Examples


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.