I have an application that only runs when I remove static DNS Server IPs from the Local Area Connection Properties. The app actually launches, but after entering login info, it returns a connection error. Only after changing the DNS to automatic will it work properly. (If I then immediately set DNS back to static, the app works normally if I exit the program and launch it again.)
I'd like to crete a registry script that would set DNS to automatic, then reset it to specific primary and secord IPs. But most importantly, the script should allow for the "Apply" or "OK" function, so that the settings are refreshed at the completion of the script.
Anyone with any ideas as to why this problem may be occurring, or would anyone care to share a script that would accomplish the above? Thanks.