cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
chris_sterner
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

2 REPLIES 2
Bruce_B
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.
SouthySuper
Engaged Sweeper III
Would this work?

netsh interface ip set dns "Local Area Connection" static 10.1.10.11
netsh interface ip add dns "Local Area Connection" 10.1.10.12 index=2
netsh interface ip add dns "Local Area Connection" 10.1.10.13 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