Jump to content
Sign in to follow this  

WZCSVC Trigger

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 
        SplashTextOn("",$msg & "OFF",$x,$y)
        SplashTextOn("",$msg & "ON",$x,$y)
$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  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...