Archived from groups: microsoft.public.windows.networking.wireless (More info?)
Hi,
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.
Archived from groups: microsoft.public.windows.networking.wireless (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.
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
DeleteRegistryValue("SOFTWARE\Microsoft\WZCSVC\Parameters\Interfaces\"
& GUID, RegString)) then
FINISHED = true
end if
loop
You are about to answer a thread that has been inactive for more than 6 months. If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.