![]() |
|
|
|||||||
![]() |
Wireless Networking - Script Wireless Zero Config on XP? |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Is it possible to script Wireless Zero Config on Windows XP SP3? It
looks like the netsh commands for wlan are missing on XP (but there on Vista). We'd like to be able to set profiles, get RSSI, etc. for testing different configurations in an automated way. Is this possible on XP? If so, where should I look? WMI? Visual Basic? .bat scripts? skillzero |
|
|
|
|
#2 |
|
Posts: n/a
|
skillzero wrote:
> Is it possible to script Wireless Zero Config on Windows XP SP3? It > looks like the netsh commands for wlan are missing on XP (but there on > Vista). We'd like to be able to set profiles, get RSSI, etc. for > testing different configurations in an automated way. Is this possible > on XP? If so, where should I look? WMI? Visual Basic? .bat scripts? WMI can give the RSSI and some other parameters. To set profiles... only Visual basic is your friend from the above list - or even better, Visual C. Of course, unless you have Centrino: PROSet has some WMI scriptable interface, if memory serves. regards, -- pa Pavel A. |
|
|
|
#3 |
|
Posts: n/a
|
On Apr 23, 11:24*am, "Pavel A." <pave...@NOfastmailNO.fm> wrote:
> WMI can give the RSSI and some other parameters. > To set profiles... only Visual basic is your friend > from the above list - or even better, Visual C. > Of course, unless you have Centrino: PROSet has some WMI > scriptable interface, if memory serves. Thanks, it sounds like using the Wlan APIs from Visual C is the best option? If so, I can write a command line tool in C so normal .bat scripts can invoke it. BTW...If I wanted to use WMI, can you give an example of how I might get the RSSI? I've heard of WMI, but never used it so I'm not even sure how I would invoke it. skillzero |
|
|
|
#4 |
|
Posts: n/a
|
"skillzero" <> wrote in message
news:139ab6de-5ca7-4060-b43e-... > On Apr 23, 11:24 am, "Pavel A." <pave...@NOfastmailNO.fm> wrote: > >> WMI can give the RSSI and some other parameters. >> To set profiles... only Visual basic is your friend >> from the above list - or even better, Visual C. >> Of course, unless you have Centrino: PROSet has some WMI >> scriptable interface, if memory serves. > > Thanks, it sounds like using the Wlan APIs from Visual C is the best > option? If so, I can write a command line tool in C so normal .bat > scripts can invoke it. > > BTW...If I wanted to use WMI, can you give an example of how I might > get the RSSI? I've heard of WMI, but never used it so I'm not even > sure how I would invoke it. The following vbscript demonstrates use of MSNdis_80211_ReceivedSignalStrength WMI class. It should work on WinXP. ====== Set wmi = GetObject("winmgmts:{impersonationLevel=impersonat e}!root/wmi") On Error Resume Next Set AdapterSet = wmi.ExecQuery("select * from MSNdis_80211_ReceivedSignalStrength") If Err.Number <> 0 Then Wscript.Echo "Error from WMI:" & Err.Number Wscript.Quit 2 End If For each wa in AdapterSet WScript.Echo "Adapter name=", wa.InstanceName WScript.Echo "RSSI=", wa.Ndis80211ReceivedSignalStrength Next ========= Regards, -- pa Pavel A. |
|
|
|
#5 |
|
Posts: n/a
|
On Apr 24, 2:38*pm, "Pavel A." <pave...@12fastmail34.fm> wrote:
> The following vbscript demonstrates use of > MSNdis_80211_ReceivedSignalStrength > WMI class. It *should work on WinXP. > > [...] Thanks! skillzero |
|
|
|
#6 |
|
Posts: n/a
|
On Apr 24, 2:38*pm, "Pavel A." <pave...@12fastmail34.fm> wrote:
> "skillzero" <skillz...@gmail.com> wrote in message > The following vbscript demonstrates use of > MSNdis_80211_ReceivedSignalStrength > WMI class. It *should work on WinXP. > > ====== > Set wmi = GetObject("winmgmts:{impersonationLevel=impersonat e}!root/wmi") > On Error Resume Next > Set AdapterSet = wmi.ExecQuery("select * from > MSNdis_80211_ReceivedSignalStrength") > > * If Err.Number <> 0 Then > * * Wscript.Echo "Error from WMI:" & Err.Number > * * Wscript.Quit 2 > * End If > > * For each wa in AdapterSet > * * * * * WScript.Echo "Adapter name=", wa.InstanceName > * * * * * WScript.Echo "RSSI=", wa.Ndis80211ReceivedSignalStrength > * Next > ========= Sorry if this is a dumb question, but do you know how I could do the equivalent of the above script using the "wmic" command line tool? I recently found this and I can us it it to dump some basic info about the system (e.g. OS version), but I'm not sure how to get 802.11 info from it. I tried MSNdis_80211_ReceivedSignalStrength and a few variants, but it always says "alias not found". Thanks. skillzero |
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with 877W wireless.....nearly there :o) | djhopps | Hardware | 0 | 10-06-2008 10:45 AM |
| Notebook + dial up modem + wireless router = wireless network ? | fujikoma_2008 | Hardware | 1 | 02-21-2008 04:02 PM |
| Setting up a Network -- Wired or Wireless? | shopzero.net | DVD Video | 1 | 07-24-2006 07:18 PM |
| Re: adding wireless to a wired network | AG | A+ Certification | 3 | 01-14-2005 08:52 AM |
| Re: adding wireless to a wired network | Remo | A+ Certification | 0 | 01-07-2005 06:31 PM |