Skip to content

Fix My XP

Loading...
Orb-smallest3.png Welcome To FixMyXp.com
Your One Stop Windows XP Fix It Site
filetypes.png Got A Windows XP Problem ?
Get Free Help. Post it in our Forum
kwikdisk.png Get Your Fix On!
FixMyXP.com has tons of easy to follow, picture filled Guides and Articles
keditbookmarks.png FixMyXPs List of the Best Freeware
Click Here to check it out!

Fix

a. The act of adjusting, correcting, or repairing.

b. Informal Something that repairs or restores; a solution:

Increase font size  Decrease font size  Default font size 
You are here:    Home

Login

Welcome, Guest. Please login or register.
October 13, 2008, 02:16:39 AM
Username: Password:
Login with username, password and session length

Forgot your password?
forumhelpmodule.jpg

Translate

 

Windows Update Batch File Print
Written by windowsxp550   
Thursday, 17 November 2005
Please Enter New Tags Separated By Comma's
  Or Close


We all know that Windows Update provides the latest updates, patches, security fixes, drivers and more for your Microsoft based Operating System. To access windows update, all one had to do was go to the website and click on the scan button and Windows Update would scan the system display the missing updates. Once the user chose which updates they wanted (and clicked the install button), Windows Update would download and install.

Late in 2004, Microsoft changed things in Windows Update. Windows Update now has requirements in place which requires 3 system services be set in a specific way. The 3 services are, Automatic Updates, BITS (Background Intelligent Transfer Service), & Event Log. Failure to have them running and set to Automatic results in the following error screen:

I for one do not like anything installing onto my computer without my knowledge. Leaving the Automatic Updates in Automatic mode is allowing Microsoft to install things onto my computer without my knowledge, so for me, I always like this disabled. Of course this means I occasionally have to go and check the Windows Update Site for Updates, but I’d rather do that than allow anything to be installed without my knowledge. Many people feel the same way when it comes to Automatic Updates.

Now that Microsoft has made it a requirement when accessing Windows Update, it is a major annoyance for those of us who prefer to keep Automatic Updates Off. We have to go and turn on Automatic Updates (and the other two services, BITS service and Event Log), then we can update our system. After updating, we have to go back and disable Automatic Updates.

 

This annoyed me so much that I finally decided to come up with an easier, faster way to start the required services. To do this, first open up notepad, then type the following:

 

sc config wuauserv start= auto

sc config BITS start= auto

sc config Eventlog start= auto

sc start wuauserv

sc start BITS

sc start Eventlog

start %SystemRoot%\system32\wupdmgr.exe

 

 

Then save the file and name it whatever you want, but make sure to end the file name with .bat So for example my file is named:

StartServicesForWindowsUpdate.bat

 

 

Then you need a batch file to stop the services after you are done updating. To do this, open notepad again, then type the following:

 

sc config wuauserv start= disabled

sc config BITS start= demand

sc stop wuauserv

sc stop BITS

 

 

This stops the BITS service and sets it to manual mode and it stops the Windows Update Service and sets it to disabled. The Event Log service should be kept running.

Then save the file and name it whatever you want, but make sure to end the file name with .bat So for example my file is named:

StopServicesForWindowsUpdate.bat

 

 

Save these files wherever you want. I keep mine on my start menu for quick access. To do this I simply drag the icon to the start menu:

 

Edited July 14, 2006 - Recently, Microsoft had silently post a beta version of the Windows Genuine Advantage Tool to Windows Update as a Critical Update. For those of you who are not familiar with this tool, basically what it does is check if the version of Windows being run is legitimate (if it determines that the version is not legitimate it generates annoying pop up messages alerting the user to purchase a valid copy of Windows), and it sends information back to the Microsoft servers regularly. Since it was a Critical Update, this was pushed out to all systems that had Automatic Updates turned on. A few days later, Microsoft released instructions on how to remove the WGA (however, these instructions were not pushed out to all the systems that had Automatic Updates, instead it was placed on their website. So only those looking for it would find it.).

There were many, many people who reported that the WGA was reporting their version of Windows as not being valid, when it in fact was valid. Of course, this problem only affected those people who had Automatic Updates turned on (and those who manually went to Windows Update).

I do not understand why anyone would want to allow Microsoft or any other company the privledge of being able to install something on their computer without their knowledge. Luckily for me, since I had long ago determined that having Automatic Updates on, to be a bad thing, which led to the creation of this batch file, I did not have to worry about anything.

Edited February 13th, 2007 - A Special Thanks go out to the user, Fever, who left a comment regarding an error I had. I mistakenly had EVRSvc instead of Eventlog. Thank you.


Comments (4)Add Comment
what happened???
written by n, July 31, 2007
ok so I've used these batch files and they work great. But however, now when i go to use the startup one a pop up box displays a message Stating the requested lookup key was not found in any active activation context I've checked if any of the 3 services are, Automatic Updates, BITS (Background Intelligent Transfer Service), & Event Log enabled, and none were, except the event log service is started but disabled and it won't let me stop the damn service. Has this been something that you might have had occur to you and if so how could i fix this situation.

------------
From Admin: Please post this question in the forum. I think I can help you, but this is the commenting section and is not meant for back-and-forth responses.
...
written by fever, February 12, 2007
I wanted to do the same thing, and had found sc.exe by googling, but the documentation doesn't make the need for a space between the = sign and the option clear. Thanks for the clarification! One question, though... Why enable Error Reporting Service? Event Log should be on, but Error Reporting Service is unneeded both by Automatic Updates and the general user. Especially now that Vista is out...
...
written by Ricky123, December 23, 2006
Okay, couldn't you just disable automatic updates in My Computer - Manage - Services.
------------------------
From Admin - Yes, that is the point. But if you have the Automatic Update Service Disabled and try to go to Windows Update it will give you an error. That is the point of this batch file. So if you keep Automatic Update Service disabled, then when you want to update all you have to do is double click on the batch file and it will automatically set the Automatic Update Service to the required setting (as well as two other services that Windows Update requires) then it launches Windows Update and everything updates with no errors. The 2nd batch file is run after you update, and what it does is set the Automatic Updates Service (as well as the other two services) back to disabled.
.... Please comment.
written by Ricky, December 15, 2006
Why has my comment been removed? I just want to know why... Please tell me!

--------------------------
Note from Admin: We had a serious problem last week with a malicious spammer who had posted over 250 Links to porn sites. At one point this spammer was posting a link almost every 30 seconds. These links were deleted but there were a few valid comments that were included in this delete. Due to the number of spam porn links being put on the site at once, it made it difficult to keep up with deleting them from the backend. So we had to physically go into the database and delete a section of the comments (the section that we deleted had about 90% spam porn links and about 10% legitamate comments). The spam porn links had to be removed at once so we were left with no other choice but to sacrifice some valid comments.

Write comment
quote
bold
italicize
underline
strike
url
image
quote
quote
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley
Smiley

security code
Write the displayed characters


busy