Batch file equivalent to the good old "Repair" option for network card found in XP

Posted on 2011-10-08
Last Modified: 2012-05-12
One of the Windows XP features I really liked was the ability to right-click on a wireless card or NIC in my system tray (notification area) and select "Reset."  This quick-and-easy trick often fixed stubborn wireless connections.  I think Microsoft abandoned this feature with Vista.  (It definitely isn't present on my Windows 7 machine.)  Anyway, I'd love to create a little batch file that I can run on Windows 7 machines that takes the same steps.  Here are a few commands that might be part of this batch file:

REM -- Flush the arp cache --
netsh interface ip delete arpcache
REM -- Release and renew IP's --
ipconfig /release
ipconfig /renew

Are these reasonable?  What am I missing?
Question by:jdana
    LVL 38

    Accepted Solution

    Ipconfig /flushdns
    LVL 87

    Expert Comment

    At least in Windows 7 you can right click on the networking symbol in the taskbar, and then you have an option to "Troubleshoot Problems". With that you can try fixing networking issues.

    Author Comment

    I've had some success with "Troubleshoot Problems."  I'd say more often that not, it doesn't get me anywhere.
    LVL 10

    Assisted Solution

    arp -d *
    LVL 8

    Assisted Solution

    make sure to run the batch as administrator ,simply double clicking on it may not work due to UAC.just making sure :),otherwise seems ok to me combined with flushdns

    Author Closing Comment

    LVL 10

    Expert Comment

    Glad I could help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    With the purchase of CloudCommand by Comcast customers are left in a bind as subscriptions expire and render the AP's disabled. The following will explain how to flash your Ubiquiti AP's with CloudCommand firmware back to Ubiquiti firmware. HOWTO…
    This subject  of securing wireless devices conjures up visions of your PC or mobile phone connecting to the Internet through some hotspot at Starbucks. But it is so much more than that. Let’s look at the facts: devices#sthash.eoFY7dic.
    This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
    Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

    737 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

    22 Experts available now in Live!

    Get 1:1 Help Now