Network Virtualization and DNS registration using PowerShell

Share this:

Using a simple PowerShell cmdlet to remove the DNS registration on Virtual NIC (vNICs) created by Virtual Machine Manager.


This Tutorial was created to remove the DNS Registration of Virtual NICs created using Virtual Machine Manager, however it can be used in several situations where the goal is to remove that flag using PowerShell.

In this scenario we are using a consistent naming convention, as shown in the image below, and all Virtual NICs (all adapters starting with vEthernet) do not require registration in DNS.


However, by default any new adapter on the Operating System will have that option checked on the DNS tab, as shown in the image below.


So, PowerShell to the rescue! Since we have a consistent naming convention and all vNICs shouldn’t have that configuration we can use the following cmdlet to list all vNICs

Get-NetAdapter vEthernet*

Now that we tested and we have all of them being listed, we can add the following cmdlet and it will disable registration on all vNICs being listed from the first cmdlet.

Get-NetAdapter vEthernet* | Set-DNSClient –RegisterThisConnectionAddress $False

In order to validate if the operation was performed successfully, we can run the following cmdlet and the value of False should be listed on the RegisterThisConnectionAddress column.

Get-NetAdapter vEthernet* | Get-DNSClient

The result of the three cmdlets above are summarized on the image below.


We can always check the configuration using the Graphical User Interface, and now the setting Register this connection’s address in DNS should be unchecked.


Using this simple cmdlets the administrator can control the DNS registration with a few commands. In environments that do not share a consistent naming convention, the administrator may have to be creative on the Get-NetAdapter cmdlet to list all adapters that are going to configured, or run the same command using the specific name of the adapter several times.

Written by Anderson Patricio

Anderson Patricio

Anderson Patricio is a Canadian MVP in Cloud and Datacenter Management, and Office Server and Services, besides the Microsoft Award he also holds a Solutions Master (MCSM) in Exchange and several other certifications. Anderson has been contributing to the Microsoft Community with articles, tutorials, blog posts, twitter, forums and book reviews. He is a regular contributor here at,, and Anderson (Portuguese).

Related Post

Using Migrate Storage feature in VMM 2016 We will be migrating storage from a running VM (Virtual Machine) using VMM (Virtual Machine Manager) 2016. In this Tutorial the customer had two volum...
System Center Virtual Machine Manager – Solv... In some scenarios, a refresh host or configurations to be applied on a Hyper-V host can fail with error 2912 (NO_PARAM). In this Tutorial, we are goin...
VMs not available in Virtual Machine Manager (VMM) In this Tutorial we are going to cover Introduction Solution The issue was that all VMs running on a Windows Server 2012 R2 server was showing like...
Managing features at Network Adapter level using P... Using PowerShell to manage features at network adapter level, the tasks that we are going over on this Tutorial may be required when managing a larger...