Can a worklet update DNS entries under network setting on machines?
Yes, you could use something quick and simple like the following below to set your primary and secondary DNS addresses. The Get-DnsClientServerAddress will return the output of your changes to the Reports > Activity section in Automox, you can add -Verbose to the end of each command for more detail if you wish too
Note that the “Ethernet*” in -InterfaceAlias will target all network adapters on the device named “Ethernet” (if there is more than one)
Change “220.127.116.11” and “18.104.22.168” in -ServerAddresses to your specified DNS address.
Be sure to test this first.
Set-DnsClientServerAddress -InterfaceAlias "Ethernet*" -ServerAddresses @("22.214.171.124","126.96.36.199") Get-DnsClientServerAddress -InterfaceAlias "Ethernet*" | Select InterfaceAlias,ServerAddresses