Subscribe to Windows IT Pro
April 27, 2004 12:00 AM

Installing Multiple Windows XP Hotfixes at One Time

Windows IT Pro
InstantDoc ID #42191
Rating: (3)

I'm getting tired of constantly downloading and installing hotfixes for Windows XP—particularly because I must install them on multiple machines. Is there some way to simplify the installation?

The easiest way is to use a batch file that processes the updates line by line. The key is to script each process to be unattended and not to require a reboot.

First, create a share on a server that everyone can access. You can easily accomplish this task by opening a command line on a server and typing

mkdir <drive>\hotfix

Give all users access to this folder, and copy all necessary hotfixes to it. Then, on each machine that needs to be updated, run the following batch file:

@echo off
setlocal
set PATHTOFIXES=<drive>:\hotfix
%PATHTOFIXES%\<WindowsXPhotfix1.exe> /Z /Q
%PATHTOFIXES%\<WindowsXPhotfix2.exe> /Z /Q

In this batch file, drive:\hotfix is the path to the shared folder containing the hotfixes and WindowsXPhotfix1.exe and WindowsXPhotfix2.exe are the names of the first and second hotfix files that you want to apply (add additional lines to install additional hotfix files). The /Z switch causes the system to skip the reboot, and the /Q switch causes the hotfixes to be installed in quiet mode (i.e., without requiring user input).

If you want, you can remove the /Z switch from the last line; doing so will cause the machine to reboot. If you do so, just make certain that all applications and open documents are closed before running the script.

Related Content:

ARTICLE TOOLS

Comments
  • Marko
    5 years ago
    Mar 02, 2007

    Anonymous User January 28, 2005 Thank you! That was marvelous :)

    Regards,
    Vladimir

  • Erez
    7 years ago
    Nov 27, 2005

    Hi

    I have seen these instructions at Microsoft's website, but I don't understand where I should type this in if I want to batch update a single machine and I don't have a network of any kind.

    My father has a WinXP Pro SP2 machine without an internet connection and I want to install about 60 updates for his computer without having to sit next to it and double click an update 60 times...

    Is there any way to do this automatically ?

    Thanks in advance.

  • Anonymous User
    7 years ago
    Jan 28, 2005

    I thank you very much for tips on automated installation of multiple hotfixes. Since I am a programmer myself, I was able to understand your algorithm quite well and should be able to refine it for my purposes.

    I may one day register for membership on your site, since I am a computer engineer. I recently opened up my own company called "Knoz'em Computers, LLC".

    I thank you very much. May God's peace be with you always!

    From John Nozum

  • John Keller
    8 years ago
    Jun 10, 2004

    The best way to handle applying multiple hot fixes on NT/2K/XP platforms is to use the above scripting and then at the end run the qchain.exe utility from Microsoft.

  • Chuck Staples
    8 years ago
    May 06, 2004

    Article specifically mentions "XP" as platform for which this batch technique of applying patches can be used. No mention of older platforms. Can it not be applied to W2K and/or NT patches as well? What restrictions or limitations would apply?

You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.