Windows Update Tool
My PC Hell Forum
December 03, 2008, 03:55:53 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Moving to New Location Soon! Watch out for notification. 14th Dec 2007.
 
   Home   Help Search Calendar Login Register  
Pages: [1]
  Print  
Author Topic: Windows Update Tool  (Read 3028 times)
windowsxp550
Administrator
******
Posts: 932



View Profile WWW
« on: April 29, 2005, 07:50:21 PM »

Personally I HATE the new Post SP2 Requirements that Windows Update has on the services that are running. I never leave Automatic Updates Running (nor do I keep it Set to Automatic)...so every time I wanted to update windows through Windows Update, I had to go into my services and Set Automatic Updates, BITS (Background Intelligent Transfer Service) and the Event Reporting Service to Automatic, then start them all.......then I would run my updates, then go back and set everything back . Sound Familiar?

After finding Nothing on the internet (after hours of searching), I sat down and figured out on my own how to do this. I ended up writing a small batch file, that is very slick. What it does, is using dos commands it sets all of the 3 services needed for windows update to automatic, then it starts each service and, as a nice little touch I made it so that it autolaunches Windows Update.

Here it is.....just copy/paste this into notepad and name the File whatever you want...but put a .bat at the end of it (so if you named the file Update, you would need to type update.bat ) Save to somewhere where you can find the file.




sc config wuauserv start= auto
sc config BITS start= auto
sc config ERSvc start= auto
sc start wuauserv
sc start BITS
sc start ERSvc
start %SystemRoot%\system32\wupdmgr.exe




Now to use it, simply double click on the file you created and voila, your services will configure and Windows update will launch.

To revert back (after you are done with Windows Update) there is a separate batch file. So, Save this in a separate notepad file and again name the file whatever you want ...but put a .bat at the end of it




sc config wuauserv start= disabled
sc config BITS start= demand
sc stop wuauserv
sc stop BITS




Note that the stop file sets the Background Intelligent Transfer Service to Manual and Disables the Automatic Updates Service and it stops both services. Note that The Error Reporting Service Should Remain in Automatic so for that reason it is not listed in the 2nd batch file...
Logged

TAGGING!!!  New Feature Added to FixMyXP!

Click HERE to Read all about it
Cache
Rising Star
***
Posts: 380



View Profile
« Reply #1 on: September 19, 2005, 10:59:59 AM »

Nice idea. If you dont mind though, I'd like to suggest a way to integrate both the start and stop services BATCH files into one single BATCH file.

The batch file bellow basically just add's an option to either start or stop the services. It also make your "program" look a little slicker.:)
Code:
TITLE Service Manager
COLOR 1F
@ ECHO OFF
:start
CLS
ECHO.
ECHO                             ***********************
ECHO                             *   Service Manager   *
ECHO                             *  -----------------  *        
ECHO                             ***********************
ECHO.
ECHO.
ECHO Please choose from the folowing options...
ECHO.
ECHO 1: Enable Update Services
ECHO 2: Disable Update Services
ECHO 3: Exit program
echo.

SET /P choice=CHOICE:

if %choice% equ 1 goto StartServ
if %choice% equ 2 goto StopServ
if %choice% equ 3 (EXIT) else (
ECHO.
ECHO Error "%CHOICE%" is not an option. Please try again...
PAUSE
GOTO start
)

:StartServ
sc config wuauserv start= auto
sc config BITS start= auto
sc config ERSvc start= auto
sc start wuauserv
sc start BITS
sc start ERSvc
start %SystemRoot%\system32\wupdmgr.exe
EXIT

:StopServ
sc config wuauserv start= disabled
sc config BITS start= demand
sc stop wuauserv
sc stop BITS
EXIT
Logged
Essexboy
Administrator
*****
Posts: 899



View Profile WWW
« Reply #2 on: September 19, 2005, 05:21:42 PM »

Gee that almost looks like basic and I can read it (showing my age here)
Logged

VISTA
XPsp2
Avast (of course)



http://spaces.msn.com/members/essexboymkn/

 If ignorance is bliss  why aren't more people happy?
Cache
Rising Star
***
Posts: 380



View Profile
« Reply #3 on: September 19, 2005, 06:09:22 PM »

Quote from: Essexboy
Gee that almost looks like basic and I can read it (showing my age here)

hehe.

Just thought if this is going to be called a "tool" it might as well act like one. :)
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!