Script for setting IP/Subnet/Gateway/DNS using wmic
You may change TCP/IP parameters using the following functions: Get-NicInfo, ENA-DHCP, SET-FULL-IP, SET-MASK, set-GW, SET-DNS
or look the power of WMIc
This script is tested on these platforms by the author. It is likely to work on other platforms as well. If you try it and find that it works on another platform, please add a note to the script discussion to let others know.