First of, you have to reboot a computer after running this script to make the Static IP "stick" on the system. You can see the changes before rebooting, and everything looks OK, but I was not able to connect to other network devices until I rebooted. I prefer not to reboot too often.
Also, when changing back to DHCP/Dynamic the Gateway IP from the static settings is still present (if you do an IPconfig /all in a DOS prompt). this can of course cause unwanted results.
Keep Up with TechRepublic