PowerShell Logo Small


This is the built-in help made by Microsoft for the command 'Set-NetVirtualizationLookupRecord', 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 settings for policy entries that belong to a virtual network.


Set-NetVirtualizationLookupRecord [-AsJob] [-CimSession <CimSession[]>] [-Context <String>] [-CustomerAddress <String[]>] [-CustomerID <String>] [-MACAddress <String[]>]
[-PassThru] [-ProviderAddress <String>] [-Rule <RuleType>] [-ThrottleLimit <Int32>] [-UseVmMACAddress <Boolean>] [-VirtualSubnetID <UInt32[]>] [-VMName <String>]
Set-NetVirtualizationLookupRecord [-AsJob] [-CimSession <CimSession[]>] [-Context <String>] [-CustomerID <String>] [-PassThru] [-ProviderAddress <String>] [-Rule <RuleType>]
[-ThrottleLimit <Int32>] [-UseVmMACAddress <Boolean>] [-VMName <String>] -InputObject <CimInstance[]> [<CommonParameters>]

Search powershellhelp.space


The Set-NetVirtualizationLookupRecord cmdlet changes settings for lookup record policy entries for IP addresses that belong to a Microsoft® Hyper-V® Server 2012 virtual
network. Network Virtualization allows more than one virtual network to exist on the same physical network. Computers can exchange network traffic with a virtual machine
(VM) by using a Customer Address within the virtual network. Network Virtualization manages the Provider Addresses that are the physical network addresses. This cmdlet
modifies records that map a Customer Address to a Provider Address. For more information, see Network Virtualization technical details
(http://technet.microsoft.com/library/jj134174.aspx) on TechNet.

You can update the Provider Address, customer ID, context, VM name, and whether to use a VM media access control (MAC) address. You can specify which policy entries to
update by using a Customer Address, a MAC address, a rule type, or a virtual subnet ID, or you can use the Get-NetVirtualizationLookupRecord cmdlet to obtain a policy entry.



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




Example 1: Change context and customer ID

PS C:\> Get-NetVirtualizationLookupRecord -VirtualSubnetID 10000 | Set-NetVirtualizationLookupRecord -Context "BlueCustomer Subnet1" -CustomerID

This command uses the Get-NetVirtualizationLookupRecord cmdlet to get all the entries with a virtual subnet ID of 10000 and uses the pipe operator to pass them to the
Set-NetVirtualizationLookupRecord cmdlet. This cmdlet changes the context to a descriptive phrase and changes the customer ID to a specified string.

Example 2: Change Provider Address and virtual subnet ID

PS C:\>Set-NetVirtualizationLookupRecord -CustomerAddress "" -ProviderAddress ""

This command makes changes for the entry that has the Customer Address It sets the physical address to