wireless

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance





I need some guidance in deploying preferred networks using vbscript . I have
a script that add a ssid and the other settings to the registry, but i cannot
see it in "prefered networks". This script should activate the checkbox "Let
windows manage...".
This is what i have:
Const HKEY_LOCAL_MACHINE = &H80000002

strComputer = "."

Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & _
strComputer & "\root\default:StdRegProv")

'Get the id of the wireless NetworkCard
strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\13"
strValueName = "ServiceName"
oReg.GetStringValue HKEY_LOCAL_MACHINE,strKeyPath,strValueName,strValue
Wscript.Echo "networkcard id Value: " & strValue

'Create key with the id
strKeyPath = "SOFTWARE\Microsoft\EAPOL\Parameters\Interfaces\" & strvalue
oReg.CreateKey HKEY_LOCAL_MACHINE,strKeyPath

'Add a binaryvalue with the settings of the wireless conection
BinaryValueName="1"
iValues=Array(&H05,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H40,&H0d,&H00,&H00,&H00,&H04,&H00,&H00,&H00,&H65,&H2d,&H55,&H4d,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H0d,&H00,&H00,&H00,&H28,&H00,&H00,&H00,&H00,&H00,&H00,&H00,&H28,&H00,&H00,&H00,&H05,&H00,&H00,&H00)
oReg.SetBinaryValue HKEY_LOCAL_MACHINE,strKeyPath,_
BinaryValueName,iValues

If someone can point me in the right direction I would appreciate it.


.



Relevant Pages

  • Re: Airport. Stupid Airport
    ... forward between different settings and it never starts up right. ... configure Airport and added my WPA settings to the preferred networks list ... I am hiding the ssid. ...
    (uk.comp.sys.mac)
  • Re: Configuring wireless network settings in C++
    ... list of preferred networks that the wireless shall try connecting to. ... These preferred networks have some settings .e.g. Network Key. ...
    (microsoft.public.win32.programmer.networks)
  • Problem With Wireless GPO Setting
    ... clients on WIndows SBS 2003. ... Preferred Networks tab in the Security Settings I cannot add an AP. ...
    (microsoft.public.windows.server.sbs)
  • Creating GPO To Configure Wireless Settings On Clients
    ... clients on WIndows Server 2003. ... Preferred Networks tab in the Security Settings I cannot add an AP. ...
    (microsoft.public.internet.radius)