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:
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.
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