Sign in to follow this  
Followers 0
spudw2k

WZCSVC Trigger

1 post in this topic

#1 ·  Posted (edited)

If you use a wireless network and experience random disconnects/reconnects it may be (I do NOT guarantee this works for everyone's problems) the Wireless Zero Configuration service may be the culprit. Here's a quick script the "trigger" the service.

$x = @DesktopWidth * .35
$y = @DesktopHeight * .0925
$msg = @CRLF & "Wireless Zero Configuration Service is now "
$sleep = 1500

$objWMIService = ObjGet("winmgmts:{impersonationLevel=impersonate}!\\" & @ComputerName & "\root\cimv2")
If Not IsObj($objWMIService) Then Exit
$colServices = $objWMIService.ExecQuery("SELECT * FROM Win32_Service WHERE Name = 'WZCSVC'")
For $objService in $colServices
    $result = $objService.Started
    If $result Then 
        $objService.StopService
        SplashTextOn("",$msg & "OFF",$x,$y)
        Sleep($sleep)
    Else
        $objService.StartService
        SplashTextOn("",$msg & "ON",$x,$y)
        Sleep($sleep)
    EndIf
Next
$colService = 0
$objService = 0
Edited by spudw2k

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