Sign in to follow this  
Followers 0
nan

start wireless zero conf service

4 posts in this topic

As the first step in scripting our 802.1x config we want to make sure that the windows wireless zero configuration service is started. I copied the start services script from this site and added it as an include:

; Script Start - Add your code below here

#include-once "ServiceControl.au3"

Global $sComputerName="my_laptop_name"

Global $sServiceName="WZCSVC"

Func _StartService($sComputerName, $sServiceName)

EndFunc

Run("cmd.exe")

WinWaitActive("C:\WINDOWS\system32\cmd.exe")

Send("services.msc")

Send("{ENTER}")

When I run this it does not start the service (it opens the window so I can check it though). Any advice on where I am going wrong or on scripting 802.1x authentication confs?

Thanks,

Nan

Share this post


Link to post
Share on other sites



If the service is just not started, then something like this would work

#include <process.au3>
_RunDOS('net start "Wireless Zero Configuration"')

However if it is disabled, then you'll need to enable it first via the 'sc' command

#include <process.au3>
_RunDOS('sc config "Wireless Zero Configuration" start= auto')
_RunDOS('net start "Wireless Zero Configuration"')

Share this post


Link to post
Share on other sites

thanks-that did the trick

Share this post


Link to post
Share on other sites

Ok, now I can start the windows wireless zero conf service and I can get our 3rd party 802.1x supplicant configured properly and everything is good, except if the wireless card had it's own drivers in use instead of letting windows control the wireless. If windows is controlling wireless then everything is fine. If the card's drivers are in use the windows wireless zero conf service starts and the card's drivers still are in control, so the 802.1x process fails. Any ideas on how to get the windows drivers in control?

Thanks,

Nancy

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0