Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


July 2002

Using Qchain


RSS
Subscribe to Windows IT Pro | See More Hotfixes Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!
Main Article    Managing Security Hotfixes

Download the Code Here

Microsoft released qchain.exe in 2001. This utility, which works with Windows 2000 and Windows NT, lets you chain hotfixes (i.e., install multiple hotfixes one after another without having to reboot in between). In the past, chaining was difficult because you had to install fixes in a specific order so that the update procedure wouldn't overwrite new system files with earlier versions. The problem with chaining was that the last hotfix applied "won." To address that problem, Qchain manages the file-replacement process by recording files in the registry's Pending File Rename queue. Qchain analyzes the contents of the Pending File Rename subkey and applies only the most current version of the files of all applied patches.

Listing A shows sample code that illustrates how to use Qchain in a script to deploy hotfixes. The first three lines of the sample script apply three hotfixes. The -z switch applies the hotfix without rebooting; -m applies the hotfix in unattended mode, without administrative intervention; and -q applies the hotfix in quiet mode, hiding the extract and copy actions that take place. If you're applying patches manually, you might want to leave out the -q switch to view the progress of the hotfix.

The fourth line in the script runs Qchain and specifies a file in which to log Qchain's results. The sample code puts the log file in the Logs directory on a server named Fschicago and specifies a unique filename based on the computer name and the date the script ran. Because you're likely to run Qchain at a later date, a unique log name prevents you from overwriting older logs. Finally, the Shutdown utility (from the Microsoft Windows 2000 Server Resource Kit or the Microsoft Windows NT Server Resource Kit) performs a local reboot of the machine by using the /l and /r switches. The /l switch performs a logoff; the /r switch performs a clean shutdown and a restart.

End of Article



Reader Comments

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Command Prompt Tricks

One reader shares his tip for setting up the command prompt to reflect a remote path. ...

WinInfo Short Takes: Week of November 23, 2009

An often irreverent look at some of the week's other news, including some post-PDC some soul searching, a Google Chrome OS announcement and a Microsoft response, Windows 7 off to a supposedly strong start, the Jonas Brothers and Xbox 360, and so much more ...

2009 Windows IT Pro Editors' Best and Community Choice Awards

Picking a favorite product from an impressive crowd of competitive offerings is never an easy task, and such was the case with our Editors' Best and Community Choice awards this year. ...


Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

7 Ways To Get More From Your SharePoint Deployment Now

Windows, Unix, Linux Interoperability

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2009 Penton Media, Inc. Terms of Use | Privacy Statement