Reset IP Address and Subnet Mask for DHCP using batch file

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

Advertisements

One Response to Reset IP Address and Subnet Mask for DHCP using batch file

  1. Pingback: Reset IP Address and Subnet Mask for DHCP « Guo'z Space | IP address.co.uk

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s