Bat File For Repairing your lan Setting

125 pts.
Tags:
Network connectivity
Windows XP
Wireless
Wireless LAN
AOA I am using IBM Thinkpad Laptop. I have configure my wireless Lan card with static Ip address. I am using window xp on this Laptop. The problwm is that whenever i start my laptop the wifi Card doesn't connect with my AP Automatically and trying to resovle the ip address. At that point i am using repair utility to repair the lan setting. Now i want to make a batch file that automatically Repair Setting of my wifi Card without manually reapi it. Is their any Command to repair Lan setting from Command Prompt. I am n't using DHCP Server. Please Solve or provide any valuable Advice. Thanks Muhammad Usman.
ASKED: January 17, 2008  5:51 AM
UPDATED: May 20, 2010  3:21 AM

Answer Wiki

Thanks. We'll let you know when a new response is added.

netsh can be used to to reconfigure your NIC card via a command prompt.

netsh command.
From a commandpromt:

To backup the network configuration:
netsh interface dump > NetWork.cfg

To restore the network configuration:
netsh exec NetWork.cfg

or have a look at a wery nice utility from Lenovo “Thinkvantage Access Connections”
<a href=”http://www-307.ibm.com/pc/support/site.wss/document.do?sitestyle=lenovo&lndocid=MIGR-4ZLNJB”>

Discuss This Question: 4  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • KristianA
    netsh command. From a commandpromt: To backup the network configuration: netsh interface dump > NetWork.cfg To restore the network configuration: netsh exec NetWork.cfg or have a look at a wery nice utility from Lenovo "Thinkvantage Access Connections"
    report
  • Batch
    i want a change the ip through by batch file . i have 2 ip
    10 pointsBadges:
    report
  • Pjb0222
    You can configure a static IP address using "NETSH set address..." There are several options that will be specific to your physical network topology. You can look at "Help and Support" or Technet for details on options. Simply create two batch files files, one for each IP address. You could have a third batch file to set to DHCP. To repair a DHCP network connection you can try this: REM --- Renew DHCP lease (don't use for static) ipconfig.exe /renew REM --- Clear DNS resolver cache ipconfig.exe /flushdns REM --- Re-announce to DNS server ipconfig.exe /registerdns REM --- Clear ARP cache arp.exe -d * REM --- Re-announce to WINS server (only if you use WINS/NetBIOS) nbtstat.exe -RR REM --- Clear NETBIOS cache (only if you use WINS/NetBIOS) nbtstat.exe -R REM --- Clear DFS cache (may fail if dfsutil not installed) (Only if using DFS) dfsutil.exe /pktflush REM --- Clear Kerberos cache (may fail if klist not installed) (In AD / LDAP environment) klist.exe tickets purge
    3,310 pointsBadges:
    report
  • PSMurray
    Muhammad usman - My first impression is that the WiFi is not set up correctly. The repair utility does nothing that you can not do from the command line. (ipconfig /renew etc.)
    530 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following