Sign in with
Sign up | Sign in
Your question

Wireless Zero Configuration on XP SP2

  • Wireless
  • Configuration
  • Windows XP
  • Wireless Networking
Last response: in Wireless Networking
a b F Wireless
September 7, 2005 12:01:49 PM

Archived from groups: (More info?)


I am maintaining a Wireless utility for a company I work for and have a
problem with it running on Windows XP SP2.

The utility performs the following steps through an automated wizard :

1. Disable Ethernet
2. Enable Wireless
3. Purge any previous wireless cached connection credentials (to force
the user to re-authenticate)

It currently uses the WZCTOOL.exe to perform step 3 but this is not
working on SP2 - presumably because of the way that "Wireless Zero
Configuration" is operating.

My question is, how can I programmatically purge any previous wireless
cached connection credentials to force the user to re-authenticate,
while running Wireless Zero Configuration on Windows XP SP2.

Any help would be much appreciated.


More about : wireless configuration sp2

a b F Wireless
September 12, 2005 6:45:47 AM

Archived from groups: (More info?)

Here's the code I ended up using. Note the "GUID" is the wireless
adapter GUID that I an getting by using "wzctool.exe", but it would be
pretty straight forward to get this by enumerating the
"SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces" registry key.

' /*

function PurgeWZCNetworks(GUID)

Dim Count, RegString, FINISHED, WSHShell

Count = 0
FINISHED = false

on error resume next

Set WSHShell = WScript.CreateObject("WScript.Shell")

call WSHShell.Run("NET STOP WZCSVC", 0, true)

do while (Not FINISHED)
RegString = "Static#" & Right("0000" & Count, 4)
if (Not
& GUID, RegString)) then
end if

call WSHShell.Run("NET START WZCSVC", 0, true)

Set WSHShell = nothing

end function

' /*

function DeleteRegistryValue(Path, Value)

dim oReg, code

on error resume next

code = oReg.DeleteValue(HKEY_LOCAL_MACHINE, Path, Value)

DeleteRegistryValue = (code = 0)

end function

' /*