![chris_sterner chris_sterner](https://community.lansweeper.com/html/assets/User_Avatar.png)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-06-2017 06:00 PM
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
Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses XX.XXX.XX.XXX,XX.XXX.XX.XXX,XX.XXX.XX.XXX
Labels:
- Labels:
-
Custom Actions
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2017 11:20 AM
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.
In general I'd recommend testing commands in a local CMD prior to adding them in the deployment module.
![SouthySuper SouthySuper](https://community.lansweeper.com/legacyfs/online/forums_avatars/13217.jpg)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-16-2017 12:02 AM
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
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
![](/skins/images/772330E1D508EE7C725F5596471AF035/responsive_peak/images/icon_anonymous_message.png)