How To: Create A Batch File To Renew Your IP Address And Refresh Network Settings In Windows Vista
The ipconfig command is most commonly used at the DOS (Disk Operating System) prompt to see a Windows based computer’s current ip configuration.Using the ipconfig command with three different switches also allows you to refresh a Windows Vista computer’s network settings and also renew the ip address which can be very useful when troubleshooting network issues.(Also If you tried downloading files from file sharing site like rapidshare,megashare etc, you might have encountered that you had to wait for sometime as a free before you download the next file,but most of these sites block you based on the IP Address and here’s how you can overcome this problem if you are on Dynamic IP).For this you can easily create a batch file in Windows Vista that will run the ipconfig command along with its switches to quickly refresh a computer’s network settings and also renew its ip address.
Batch File To Renew Your IP Address And Refresh Network Settings In Windows Vista
- Click on the “Start” menu and go to “All Programs”.
- Go to “Accessories” and open “Notepad”.
- In Notepad, type in the following commands.
runas /user:local\administrator
ipconfig /release
ipconfig /flushdns
ipconfig /renew
- Save the file as “RefreshIPSettings.bat”.
- Double click on the batch file and your Windows Vista computer’s network settings will be refreshed.
Place the batch file on the Windows Vista desktop and run it whenever you want to renew your ip Address.
Note :
- This trick also works in Windows XP with some modifications on the script.
- If your on Windows XP, remove the first line in the batch file “runas /user:local\administrator“
- In Windows Vista,without the first line in the batch file “runas /user:local\administrator“,you would asked for your administrator password for the batch to execute.
- This trick works only if you are on a Dynamic IP based connection.
- After running the command ipconfig /renew in Windows Vista, check what ip address you have by ‘ipconfig’. If you have an ip address starting with 169.254, then you are not connected to the Internet. Addresses starting with ip address 169.254 are assigned automatically by Windows when Windows is unable to contact an Internet (DHCP) server for an address.
Another Method You Can Try:
Here’s another easier method that we do the above trick with a desktop shortcut to the cmd window with the arguments appended to the command.In this case there is no batch file, just a pointer to the command prompt with added arguments.
target:
%windir%\system32\cmd.exe /C ipconfig/release & ipconfig/renew & ipconfig/registerdns
start in:
%windir%
Popularity: 5%
Did You Like This Post? Then You Might Find These Also Interesting:
Written by Tony on February 11th, 2009 with
no comments.
Read more articles on Windows Networking.





