Showing results for 
Show  only  | Search instead for 
Did you mean: 
Engaged Sweeper II
I have been trying to get a few different scripts to work to add a tertiary DNS server to all of our endpoints. But so far, none have worked. I keep getting "Incorrect Function" errors. Here is one of the commands I am trying:

Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses XX.XXX.XX.XXX,XX.XXX.XX.XXX,XX.XXX.XX.XXX

Lansweeper Alumni
Do note that commands entered in the deployment module are executed in the local CMD, if you're running powershell commands make sure to preface them with powershell.exe

In general I'd recommend testing commands in a local CMD prior to adding them in the deployment module.
Engaged Sweeper III
Would this work?

netsh interface ip set dns "Local Area Connection" static
netsh interface ip add dns "Local Area Connection" index=2
netsh interface ip add dns "Local Area Connection" index=3

New to Lansweeper?

Try Lansweeper For Free

Experience Lansweeper with your own data.
Sign up now for a 14-day free trial.

Try Now