1.@ECHO OFF
2.ECHO Resetting IP Address and Subnet Mask For DHCP
3.netsh int ip set address name = "Local Area Connection" source = dhcp
4.
5.ECHO Resetting DNS For DHCP
6.netsh int ip set dns name = "Local Area Connection" source = dhcp
7.
8.ECHO Resetting Windows Internet Name Service (WINS) For DHCP
9.netsh int ip set wins name = "Local Area Connection" source = dhcp
10.
11.ECHO Here are the new settings for %computername%:
12.netsh int ip show config
13.
14.pause