1,110 pts.
 Netsh WLAN for Windows XP
Is there a netsh wlan for windows XP? I want to automate changing network settings via login or batch scripts.

Software/Hardware used:
ASKED: April 12, 2011  4:37 PM
UPDATED: April 13, 2011  6:26 AM

Answer Wiki:
Netsh wlan command exists only in Windows Vista, Windows 7 and in Windows Server 2008 and not for XP. netsh may available in Windows XP "C:WindowsSystem32" for the exe. Make sure the wireless device is found and installed properly on XP and also make sure have SP3 installed as it has some updates for netsh. You may try this batch....
netsh interface ip set address name="Local Area Connection" source=static addr=<static ip here> mask=<net mask here>
netsh interface ip set address name="Local Area Connection" gateway=<gateway address here> gwmetric=1
netsh interface ip set dns name="Local Area Connection" source=static addr=<stati address here>
netsh interface ip add dns name = "Local Area Connection" addr = <ip address here>
If you have DHCP....
netsh interface ip set address name="Local Area Connection" dhcp
netsh interface ip set dns name="Local Area Connection" dhcp
If you need WINS....
netsh interface ip set wins name="Local Area Connection" source=static addr=<ip address here>
After that pass the command as: ipconfig /all OR another batch file you may try....
set varstip=<ip address here>
set varsbmk=<net mask here>
set vargtwy=<gateway address here>
set vardns=<dns address here> 66.78.202.254
set varhome=<as ur choice> (optional)
netsh int ip set address name = "Local Area Connection" source = static addr = %varstip% mask = %varsbmk%
netsh int ip set address name = "Local Area Connection" gateway = %vargtwy% gwmetric = 1
netsh int ip set dns name = "Local Area Connection" source = static addr = %vardns%
netsh int ip show config
ipconfig /all
After that, you must save the file as .bat extension!
Last Wiki Answer Submitted:  April 19, 2013  5:59 pm  by  Subhendu Sen   22,125 pts.
All Answer Wiki Contributors:  Subhendu Sen   22,125 pts. , Michael Tidmarsh   14,000 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _