spudw2k Posted March 27, 2008 Share Posted March 27, 2008 (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 March 27, 2008 by spudw2k Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now