Set-DnsClientServerAddress cmdlet

Spread the words

The Set-DnsClientServerAddress cmdlet sets one or more IP addresses for DNS servers associated with an interface.


  • AsJob
  • CimSession

This parameter runs the cmdlet in a remote session or on a remote computer.

  • InputObject

This parameter specifies the input to this cmdlet.

  • InterfaceAlias

This parameter specifies the interface.

  • InterfaceIndex

This parameter specifies the index number of the interface.

  • PassThru

This parameter returns an object representing the item with which you are working.

  • ResetServerAddresses

This parameter resets the DNS server IP addresses to the default value.

  • ServerAddresses

This parameter specifies a list of DNS server IP addresses to set for the interface.

  • ThrottleLimit
  • Validate

This parameter validates that one or more IP addresses are responsive DNS servers before the IP addresses are set to the interface.

  • Confirm

This parameter prompts you for confirmation before running the cmdlet.

  • WhatIf

This parameter shows what would happen if the cmdlet runs.






Outputs :



Set-DnsClientServerAddress -InterfaceIndex 12 -ServerAddresses (“″,””)

Set-DnsClientServerAddress –InterfaceIndex 12 -ResetServerAddresses

Be the first to comment on "Set-DnsClientServerAddress cmdlet"

Leave a comment

Your email address will not be published.