Go Back   Velocity Reviews > Newsgroups > Wireless Networking
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

Wireless Networking - Script Wireless Zero Config on XP?

 
Thread Tools Search this Thread
Old 04-23-2009, 06:59 PM   #1
Default Script Wireless Zero Config on XP?


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
  Reply With Quote
Old 04-23-2009, 07:24 PM   #2
Pavel A.
 
Posts: n/a
Default Re: Script Wireless Zero Config on XP?
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.
  Reply With Quote
Old 04-23-2009, 11:17 PM   #3
skillzero
 
Posts: n/a
Default Re: Script Wireless Zero Config on XP?
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
  Reply With Quote
Old 04-24-2009, 10:38 PM   #4
Pavel A.
 
Posts: n/a
Default Re: Script Wireless Zero Config on XP?
"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.
  Reply With Quote
Old 04-25-2009, 02:23 AM   #5
skillzero
 
Posts: n/a
Default Re: Script Wireless Zero Config on XP?
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
  Reply With Quote
Old 04-30-2009, 12:37 AM   #6
skillzero
 
Posts: n/a
Default Re: Script Wireless Zero Config on XP?
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
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

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




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46