The Set-DnsClientServerAddress cmdlet sets one or more IP addresses for DNS servers associated with an interface.
Parameters:
- 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.
Inputs:
Microsoft.Management.Infrastructure.CimInstance#root\StandardCimV2\MSFT_DNSClient
Microsoft.Management.Infrastructure.CimInstance#root\StandardCimV2\MSFT_DNSClientServerAddresses
Microsoft.Management.Infrastructure.CimInstance#root\StandardCimV2\MSFT_NetAdapter
Microsoft.Management.Infrastructure.CimInstance#root\StandardCimV2\MSFT_NetIPInterface
Outputs :
Microsoft.Management.Infrastructure.CimInstance#root\StandardCimV2\MSFT_DNSClientServerAddress
Examples:
Set-DnsClientServerAddress -InterfaceIndex 12 -ServerAddresses (“10.0.0.1″,”10.0.0.2”)
Set-DnsClientServerAddress –InterfaceIndex 12 -ResetServerAddresses
Be the first to comment on "Set-DnsClientServerAddress cmdlet"