CmdID / PowerShell / Cmdlets / Set
Set-DnsClientServerAddress
Sets DNS server addresses associated with the TCP/IP properties on an interface. Windows Server PowerShell reference
From the Windows Server PowerShell reference 12 parameters Its page in the reference
Parameters
-AsJobRuns the cmdlet as a background job.-CimSession, -SessionRuns the cmdlet in a remote session or on a remote computer.-Confirm, -cfPrompts you for confirmation before running the cmdlet.-InputObjectSpecifies the input to this cmdlet.-InterfaceAliasSpecifies the friendly name of the interface.-InterfaceIndexSpecifies the index number of the interface.-PassThruReturns an object representing the item with which you are working.-ResetServerAddresses, -ResetAddressesResets the DNS server IP addresses to the default value.-ServerAddresses, -AddressesSpecifies a list of DNS server IP addresses to set for the interface.-ThrottleLimitSpecifies the maximum number of concurrent operations that can be established to run the cmdlet.-ValidateValidates that one or more IP addresses are responsive DNS servers before the IP addresses are set to the interface.-WhatIf, -wiShows what would happen if the cmdlet runs.