MicrosoftUncategorized

Change Static IPs to DHCP

This will change your Local Area Connection to DHCP while also setting your homepage in IE to your choice (edit the last line with your website).

Note: You will need to enter the exact name for the network adapter you want to change. For example if you wanted to change your wireless to DHCP.

To find out your adapters name view your network connections. As you can see below I have multiple adapters that VMware has created.

 

Here is the batch file (.bat) code:

@ECHO OFF

ECHO Resetting IP Address and Subnet Mask For DHCP
netsh int ip set address name = “Local Area Connection” source = dhcp

ECHO Resetting DNS For DHCP
netsh int ip set dns name = “Local Area Connection” source = dhcp

ECHO Resetting Windows Internet Name Service (WINS) For DHCP
netsh int ip set wins name = “Local Area Connection” source = dhcp

ECHO Here are the new settings for %computername%:
netsh int ip show config

REG ADD “HKCUSOFTWAREMICROSOFTINTERNET EXPLORERMAIN” /V “START PAGE” /D “https://www.coryfiala.com/” /F

Downlaod
Show More

Cory Fiala

Technology and outdoor enthusiast. Anything from desktops to servers with a side of mountain biking and skiing. Life is good!

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button
Close