I’ve found a script that will help me move a computer from DHCP to static and back. I have a user who travels to multiple locations, all DHCP enabled except 1. The only problem is, this script does not clear the gateway entry when it switches back to dhcp. So the static gateway stays put. Can anyone provide me with code to clear the gateway so that the address provided by DHCP will be used? I’ve tried several variations, but I’m not very good at scripting. I’ve already looked at http://msdn.microsoft.com/library/en-us/wmisdk/wmi/setdnsserversearchorder_method_in_class_win32_networkadapterconfiguration.asp
Thanks.