Disabling Windows Zero Config at Startup

Associate
Joined
27 May 2004
Posts
2,400
Location
UK
Hey,

I need to disable WZC otherwise I encounter some nasty ping spikes.
However, I have gone in to Services and set the startup type to "disabled" yet, the service still starts up at boot...

Any ideas?
 
It's definitely stopped, because it solves my ping spiking problem and clearly says "stopped".

I then set the startup type to disabled, click apply.

Reboot - it's started again...

Really annoying :/
 
I use a VBScript here, it allows it to connect to the network then disable itself.

Code:
Option Explicit
Dim objWMIService, objItem, objService
Dim colListOfServices, strComputer, strService, intSleep 
strComputer = "."
intSleep = 30000

strService = " 'wzcsvc' "
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" _
& strComputer & "\root\cimv2")
Set colListOfServices = objWMIService.ExecQuery _
("Select * from Win32_Service Where Name ="_
& strService & " ")
For Each objService in colListOfServices
objService.StartService()
WSCript.Sleep intSleep
objService.StopService()
Next
WScript.Quit

Make sure the extension is .vbs

Amazing, works a treat.

Where bouts it Glos are you? If its close enough I'll come over and give you a cookie. :p
 
Back
Top Bottom