DOWNLOAD THE CODE:
Download the Code 20320.zip

The HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\Current Version\CSDVersion registry subkey shows a value of Service Pack 6 if either Windows NT 4.0 Service Pack 6 (SP6) or SP6a is installed. The most common way to determine whether SP6a is installed on a system is to run the winver.exe utility. However, winver.exe is a GUI utility, so this method has great limitations for administrators who want to query remote machines to determine the systems' service pack levels.

I learned a curious fact about SP6a's winver.exe that can indirectly enable administrators to get the SP6a information they need. The winver.exe that comes with SP6a is hard-coded to display (in the GUI) an extra line below the copyright information that states "Revised Service Pack 6a." If you run this version of winver.exe on a machine running a service pack earlier than SP6, the GUI displays the correct service pack number in this extra line of text. When Microsoft releases SP7, Microsoft plans to replace winver.exe with a new version that doesn't display this extra line of text, so querying the timestamp of winver.exe should be a reliable method of remotely determining whether SP6a is installed. If the timestamp is 11/18/1999, then SP6a's winver.exe is installed; if the timestamp is 8/9/1996 or another date, some other service pack is installed. Listing 1 shows a batch file that parses a list of NT machines and queries each machine about whether SP6a is running based on winver.exe's timestamp.

End of Article




You must log on before posting a comment.

If you don't have a username & password, please register now.

Reader Comments

I have just read the article and I have a few questions about what was written. <br><br> You say that the sp6a winver.exe is hard-coded to display "Revised Service Pack 6a." If this is true then how can it then correctly display the actual version of the service pack installed.<br> I have tried this on a sp5 machine and winver.exe correctly displays sp5 along with the build version, but it still displays the "Revised Service Pack 6a." in the extra line of text. <br><br> Have I misread the text or do I have a point???

Simon Yeatman

Has anyone heard of Service Pack 6, RC 1.3????????? I've been trying to find information about it I have it loaded on an IBM NetVista Intell 800mhz I don't know if this version of the service pack is the lastest. Thanks if you can help me on this!!

Carl Roche

I am trying to resurrect a machine that is blue screening with "unable to find winsrv.dll. One of the fixes is to install NT as a parallel which is not a problem, but is it possible to install Serv. Pack 6A to a specific drive?

John Beaumont

I just had a new image installed on my workstation NT 4.o service pack 6. I just noticed that I no longer have Hyperterminal. I thought this was installed by default. Help this is something that I use everyday.

CHARLES SUAREZ

 
 

ADS BY GOOGLE