Jump to content

how to find ou wich hotfixes are installed?


Recommended Posts

Hello

I want to build a unattended software update DVD (for Windows XP, of course).

I want to install all software that is not installed ,yet. So far no problem.

But I also want to install all Windows hotfixes that are not installed, yet. Now I need to know, how I can find out, wich hotfixes are installed. I tryed to create a batch script, that searches the system for (for example) KB867282.cat - if that file exists, the update KB867282 will not be installed.

The problem is that I cannot find a command that makes it possible to search subfolders for a unique file. The folder where (for example) KB867282.cat is located is a by the system generated folder ({F750D5C3-29EE-11E1-85S5-BBC04FC295EE}) (this is not a SID).

I would prefer a method to search with a batch file (if exist ....)

p.s. By the way, I am also searching for a command to find out wich operating system is in use (also for a batch file) - the command %os% tells me that I am running Windows_NT - problem is that in Windows2000 you get the same result! :}

Now let me see that I am in "the" forum ;-)

greetz quotee

Link to comment
Share on other sites


You can you the command line version of the mbsa package to run a scan of the system (2000 and above :D) and produce a log file which you can look at and it lists them.

I used it alot befoe SP2 came out (as you imagine).

I'm trying to now get it to install the hotfixes it finds which are missing or not the latest version - tho i havent tried to do this for while.

I havent (yet) tried the new 2.0 final version, so I'm unsure to whether it still works or not.

I'll try and get on this asap - send me a pm to remind me if u dont hear anything from me :)

Cheers

Nath

Link to comment
Share on other sites

Hi,

also you can in an batch use the if command like:

set hfix=876453

if not exist %systemroot%\$ntuninstallkb%hfix%$ start /wait kb876453.exe /quit and so on....

set hfix=next one...

if not exist ...

BR

Melnib00ne

Link to comment
Share on other sites

the simply way for me is not to know what hotfixes are installed .

i need to know what arent installed .

i use wpi as separate CD .

today , they are 24 critical hotfixes .

1. 20 of them after install (i use svcpack.inf and WPI for newcomers)

make an kbxxxxxx.log in %WinDrive%\ (c:\windows)

2. KB893803 , the v2 , make an kb893802v2.log, same folder .

3. 873374 , GDI+ , i use registry way from Incroyable HULK post .

can be run milion times , no problem.

4. KB893066 , the v2 use the same KB893066.log like old v1 , shame to MS.

if the log does not exist you can say isnt installed , if exist ? is v1 is v2 ?

same folder c:\windows\KB893066.log

5. same boolean with malicious kb890830, one file , monthly

appended by the new version . if dont exist isnt installed .

if exists is v1.1 or v1.5 ?

different folder and filename : C:\WINDOWS\Debug\mrt.log

also can be run milion times , no problem.

Link to comment
Share on other sites

Thanks a lot for your investigation.

But I think I found a very simple way to find out wich hotfixes are installed.. stupidly I missed that the first time I was searching.

In the windows directory, there is a hidden folder named "$hf_mig$" in that folder there are subfolders named as the hotfixes (for example KB867282).

Now I do check for the hotfixes this way:

if not exist %systemdrive%\windows\$hf_mig$\KB867282 start /wait %cdrom%\hotfixes\KB867282.exe /quiet /norestart

greetz

quotee

Link to comment
Share on other sites

This batch file should get you the OS, as long as you are using the original system supplied command processor.

WHATOS.BAT

@ECHO OFF

VER | FIND /I "95" >NUL
IF NOT ERRORLEVEL 1 GOTO :IS95
VER | FIND /I "NT" >NUL
IF NOT ERRORLEVEL 1 GOTO :ISNT
VER | FIND /I "98" >NUL
IF NOT ERRORLEVEL 1 GOTO :IS98
VER | FIND /I "2000" >NUL
IF NOT ERRORLEVEL 1 GOTO :IS2K
VER | FIND /I "MILLENNIUM" >NUL
IF NOT ERRORLEVEL 1 GOTO :ISME
VER | FIND /I "XP" >NUL
IF NOT ERRORLEVEL 1 GOTO :ISXP
GOTO :NOOS

:IS95
REM PUT YOUR COMMANDS HERE FOR WINDOWS 95
GOTO :ENDOF

:ISNT
REM PUT YOUR COMMANDS HERE FOR WINDOWS NT
GOTO :ENDOF

:IS98
REM PUT YOUR COMMANDS HERE FOR WINDOWS 98
GOTO :ENDOF

:IS2K
REM PUT YOUR COMMANDS HERE FOR WINDOWS 2000
GOTO :ENDOF

:ISME
REM PUT YOUR COMMANDS HERE FOR WINDOWS ME
GOTO :ENDOF

:ISXP
REM PUT YOUR COMMANDS HERE FOR WINDOWS XP
GOTO :ENDOF

:NOOS
ECHO YOU ARE USING AN UNKNOWN OS
PAUSE
GOTO :ENDOF

:ENDOF
EXIT

Link to comment
Share on other sites

continue this threat ...

where i can get a list of hotfixes after sp2 ?

or a soft o see how many hotfixes i fail to install?

ok i could use WINDOWS UPDATE you right. but i have some machines that dont had internet... see the point.

thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...