I have a script that changes the "dns suffix for this connection" setting that is partially working.
Here is what is happening:
If the current value is foobar.com and I set StrDNSDomain ="newvalue.com" for this command
ipconfig /all and the GUI DNS network properties show newvalue.com.
If I then change StrDNSDomain ="" (clearing out the "dns suffix for this connection" value),
ipconfig /all reverts back foobar.com BUT the GUI DNS is blank.
This will happen regardless of the number of times I set the connection property. For example I can run the script with a value of foobar1.com, then foobar2.com, then foobar3.com and after each pass ipconfig /all and the GUI show the value.
As soon as I try to clear out the value (which is my goal for this script), the property reverts back to the original setting. I have tried to reboot the system as well and that has not done anything. Any ideas?