Solved

Windows XP: Need command line to Repair Wireless Internet Connection

Posted on 2007-11-24
3
4,098 Views
Last Modified: 2010-04-21
Hi:
I would like to create a shortcut on my desktop to a bat file that would "repair the wireless network connection", normally a right mouse click and repair sequence on the wireless network connection icon.

Thanks

Charlie
0
Comment
Question by:cepes
  • 2
3 Comments
 
LVL 7

Expert Comment

by:jax79sg
Comment Utility
A repair operation does a few stuff, but not necessary all are useful. So here's the full list, but its up to u if you want everything here or not.

Batch file content as attached.

REM Batch file to renew connection

REM Renew your Dynamic IP address, if any.

ipconfig /renew "ConnectionName"
 

REM Clear Address Resolution Protocol (ARP) cache. More for your own network.

arp –d *
 

REM Clear NetBIOS cahce, again, may not be necessary

nbtstat –R
 

REM Clear DNS Resolver cache. (For resolution of internet addresses)

ipconfig /flushdns
 

REM Register on WINS databases. Again, may not be necessary for you

nbtstat –RR
 

REM Register on AD DNS database. Again, may not be necesary for you.

ipconfig /registerdns

Open in new window

0
 
LVL 7

Accepted Solution

by:
jax79sg earned 500 total points
Comment Utility
Sorry, the code seems altered, repost here.

REM Renew your Dynamic IP address, if any.
ipconfig /renew "ConnectionName"

REM Clear Address Resolution Protocol (ARP) cache. More for your own network.
arp –d *

REM Clear NetBIOS cahce, again, may not be necessary
nbtstat –R

REM Clear DNS Resolver cache. (For resolution of internet addresses)
ipconfig /flushdns

REM Register on WINS databases. Again, may not be necessary for you
nbtstat –RR

REM Register on AD DNS database. Again, may not be necesary for you.
ipconfig /registerdns
0
 

Author Closing Comment

by:cepes
Comment Utility
Thank you!!!
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Can you find a fax from a vendor you saved a decade ago in seconds? Have you ever cursed your PC under your breath during an audit because you couldn’t find the requested statement or driver history?  If you answered no to the first question or yes …
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now