Skip to main content
Jorge Bernhardt Jorge Bernhardt

Get-DnsClientServerAddress

2018

How to set primary and secondary DNS server addresses with PowerShell
·221 words·2 mins· 100 views · 5 likes
DNS Enter-PSSession Get-DnsClientServerAddress Get-Help
In this post, I want to show how to configure your computer’s primary and secondary DNS servers using PowerShell. In this case, we will use the Set-DnsClientServerAddress cmdlet. The workaround in a local computer: The Get-NetAdapter cmdlet obtains the basic properties of the network adapter.