Jump to content

WZCSVC Trigger


spudw2k
 Share

Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...