Re: Batching Updates?

From: karl [x y] (jamescagney90210@excite.com)
Date: 07/31/02


From: "karl [x y]" <jamescagney90210@excite.com>
Date: Wed, 31 Jul 2002 00:47:29 -0400


Yes. Additionally, you probably want to consider adding lines to your batch
to prevent the update from running multiple times, such as write a small
text file to the hard drive or server drive after the update is complete,
and add code to skip over the update if the file is detected. such as the
code below. Also, note that there are different switches for Qxxxxxx
hotfixes than for other Microsoft updates.

if not exist c:\update.log\nul md c:\update.log

if exist c:\update.log\patch19.txt goto patch20
REM add code to install the patch here
echo patch 19 installation was attempted >>
c:\windows\update.log\patch19.txt

:patch20
REM note that the "label" name above should be 8 characters or shorter
REM for it to work properly on Windows 9x and ME machines

"Ned Flanders" <nedfla@hotmail.com> wrote in message
news:#3EPzJAOCHA.2372@tkmsftngp09...
> If you batch run them, they will automatically wait for one to finish
before
> the other one launches.
> Here's an example for IE 5.5 SP2:
> ---start----
> @echo off
> Echo Applying IE 5.5 Post-SP2 Hotfixes to system.
> start /wait IE55SP2\Q318089\Q318089 /Q:A /R:N
> start /wait IE55SP2\Q321232\Q321232 /Q:A /R:N
> Echo Completed applying IE 5.5 Post-SP2 Hotfixes to system.
> Echo Reboot to activate changed files.
> qchain\qchain %systemdrive%\IE55HFs.log
> pause
> ---end---
>
> "Matt" <Mattfinn@rochester.rr.com> wrote in message
> news:2d9a01c237fd$c4015370$9be62ecf@tkmsftngxa03...
> > Thanks for the in-depth reply - i had no idea about
> > qchain. The problem i'm faceing is that you can only be
> > installing one hotfix at a time, is there a way to set
> > them to wait for one to finish before another runs? Thanks!
> >
> > -Matt
> > >-----Original Message-----
> > >"Matt" <Mattfinn@rochester.rr.com> wrote in message
> > >news:2af501c237d0$be8dbb40$19ef2ecf@tkmsftngxa01...
> > >> I've downloaded many security 'update' files (for both
> > >> Office and Windows) and was wondering what the best way
> > to
> > >> batch them together for running on the machines in my
> > >> office would be.
> > >
> > >A common, easy and inexpensive way to do this is to roll
> > out updates from
> > >the network login script or a batch file run on the
> > computer. Qchain from
> > >Microsoft.com allows you to run multiple hotfixes at once
> > with only 1 reboot
> > >at the end, just run Qchain after the last update. You
> > can drag and drop
> > >the patch file to a DOS / Command Prompt window and
> > add /? to the end to
> > >see what command line switches are available, e.g. to
> > make the update run
> > >quietly without user interaction and without requiring a
> > reboot after the
> > >update. But test this first, as some of the patches this
> > year require
> > >different switches that are only documented here in these
> > newsgroups in
> > >order to run silently and without a reboot. The logged
> > on user must have
> > >local administrator privileges for the batch file and
> > patches to install
> > >correctly.
> > >
> > >
> > >
> > >.
> > >
>
>



Relevant Pages

  • Re: Batching Updates?
    ... If you batch run them, they will automatically wait for one to finish before ... Echo Applying IE 5.5 Post-SP2 Hotfixes to system. ... Echo Reboot to activate changed files. ... >>the network login script or a batch file run on the ...
    (microsoft.public.security)
  • Re: Persisting env vars in cmd windows
    ... But the piece de resistance was the "start" command, ... - Have all code for the one project in one single batch file. ... @echo off ... echo:: ERROR ERROR ERROR ERROR ...
    (microsoft.public.win2000.general)
  • Re: Batch File to manipulate path and file name
    ... It should process any "poison" characters ... # echo Full name=%%a ... If you object to requiring two files to achieve your aim (one batch, ... How do I get from Input File Name to Output File Name Desired? ...
    (microsoft.public.windowsxp.general)
  • Re: W2K continually reboots (Just before log in) After updates?
    ... Managed to uninstall the last hotfix - using your suggestions, ... the batch fine. ... These machines reboot just prior to windows log in. ... My next step - would be to remove any recently applied updates, ...
    (microsoft.public.win2000.general)
  • Re: File Size Check
    ... the batch ended and was done. ... del para2.txt ... echo open ... SLEEP is part of the WinNT/2K/XP/2003 Resource Kit and not a ...
    (microsoft.public.scripting.vbscript)