General Question

sebulba23's avatar

Is there a way to use batch files to enable and disable automatic updates service?

Asked by sebulba23 (78points) August 24th, 2010

I am using Windows XP SP3. I’ve noticed my aged computer runs much better without the “Windows Update” and “Intelligent Transfer Service” services running. While I know they are important, I would much rather check for updates manually from within Internet Explorer and only have these run when I do that. I believe both of these, but definitely at least one, need to be on “automatic” startup type to use the windows update site. I’m trying to create two batch files to have a shortcut over the manual work of opening services, one to start these services with startup types of automatic, and another to stop these services and change the startup type to disabled. Putting them on Manual doesn’t seem to help, because the windows update site requires it to be automatic. So far, my start batch file looks like this:

NET START “Automatic Updates”
sc config wuauclt start= auto
NET START – “Background Intelligent Transfer Service”
sc config BITS = auto
_________________________________
I haven’t continued working much on my stop batch file because of the problems I was having with the start. Somewhere something isn’t right. When I attempt to run the first batch file, an error occurs. I know it’s because the services are already disabled, but that is how I want them to be when I turn on my computer. Somehow there must be a work around? Anybody have a better guess?

Observing members: 0 Composing members: 0

2 Answers

Response moderated (Spam)
davidgro's avatar

They can be on Manual and still able to use the Windows Update site, but they need to be Started (running) before you browse to it. (I’ve done it)
I think your problem may be that you need to use the short service name with the net start command as well. Try this for the start script:

sc config bits start= demand
net start bits
sc config wuauclt start= demand
net start wuauclt

(Note that it enables, then starts BITS before enabling, then starting Windows Update.
Of course the stop script should be in reverse order)

Answer this question

Login

or

Join

to answer.

This question is in the General Section. Responses must be helpful and on-topic.

Your answer will be saved while you login or join.

Have a question? Ask Fluther!

What do you know more about?
or
Knowledge Networking @ Fluther