rem @echo off SETLOCAL EnableDelayedExpansion rem @ECHO OFF ECHO Resetting IP Address and Subnet Mask For DHCP netsh int ipv4 set address name = "Ethernet" source = dhcp ECHO Resetting DNS For DHCP netsh int ipv4 set dns name = "Ethernet" source = dhcp ECHO Resetting Windows Internet Name Service (WINS) For DHCP netsh int ipv4 set wins name = "Ethernet" source = dhcp rem ECHO Here are the new settings for %computername%: netsh int ipv4 show config pause rem ipconfig /flushdns