Register this connection's addresses in DNS

I've been working on creating a VPN connection VIA Powershell

Add-VPNConnection Name VPN ServerAddress 000.000.000.000 TunnelType Automatic EncryptionLevel Maximum AllUserConnection UseWinLogonCredential

(server Address is obviously masked above)

I want to also set the Register This Connection's Addresses in DNS to true (Ticked)

Does anyone know of a powershell script that can do this for this specific network connection?

Thanks


  • Edited by SECMike 20 hours 26 minutes ago
May 26th, 2015 7:00am

Hi,

Pleas refer to this article:

Using PowerShell to Get or Set NetworkAdapterConfiguration-View and Change Network Settings Including DHCP, DNS, IP Address and More (Dynamic AND Static) Step-By-Step
http://blogs.technet.com/b/danstolts/archive/2012/01/31/using-powershell-to-get-or-set-networkadapterconfiguration-view-and-change-network-settings-including-dhcp-dns-ip-address-and-more-dynamic-and-static-step-by-step.aspx

Following commands can be useful to configure the settings:

Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter IPEnabled=TRUE -ComputerName . | Select-Object -Property [a-z]* -ExcludeProperty IPX*,WINS*

Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter "FullDNSRegistrationEnabled=true" ComputerName . | Get-Member


Get-WmiObject -Class Win32_NetworkAdapterConfiguration -Filter "DomainDNSRegistrationEnabled=true" ComputerName . | Get-Member

Free Windows Admin Tool Kit Click here and download it now
May 27th, 2015 12:38am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics