Skip to content

Instantly share code, notes, and snippets.

@Jaykul
Created December 29, 2016 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Jaykul/52bf6e8ab86f3de1438dd37f8cbb9904 to your computer and use it in GitHub Desktop.
Save Jaykul/52bf6e8ab86f3de1438dd37f8cbb9904 to your computer and use it in GitHub Desktop.
param($IPAddress)
Set-DnsClientServerAddress -InterfaceIndex ((Get-NetAdapter).ifIndex) -ServerAddresses $IPAddress
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment