Microsoft Network Security Hotfix Checker (HFNetChk) enhancement - correction

From: Marc Stern (mstern@CSC.COM)
Date: 04/25/02


Date:         Thu, 25 Apr 2002 14:45:17 +0200
From: Marc Stern <mstern@CSC.COM>
To: NTBUGTRAQ@LISTSERV.NTBUGTRAQ.COM

For those who use the Microsoft Network Security Hotfix Checker (HFNetChk), I wrote a little script to add two extra functionalities:
ignore some hot-fixes you do not want to install
allows you to immediately click on the knowledge base article related to a
hot fix

This is very basic, but quite handy.

Installation
Just install these two files described below in a directory, put GAWK (http://gnuwin32.sourceforge.net/packages/gawk.htm) anywhere in your path
or in the same directory and execute HFNetChk.bat

Customisation
The HFNetChk parameters can be modified in HFNetChk.bat
The hot fixes to ignore can be specified in HFNetChk.awk

HFNetChk references
Some of you who want to know more about HFNetChk, see http://www.microsoft.com/downloads/release.asp?releaseid=31154

Enjoy,

Marc Stern

Scripts

------------------ HFNetChk.bat ------------------
@echo off
hfnetchk.exe -v | gawk -f %0\..\hfnetchk.awk -- > %temp%\hfnetchk.html
start %temp%\hfnetchk.html
------------------ end of HFNetChk.bat ------------------

------------------ HFNetChk.awk ------------------
BEGIN { filter="off"; }

# To ignore some hot-fixes, uncomment next line and put the KB numbers
separated by |
# ex: /Q311967|Q296441/ { filter="on"; }

/^[[:space:]]*$/ { filter="off"; }

filter == "off" {
   sub( /Q[0-9]+/, "<A
HREF=http://support.microsoft.com/default.aspx?scid=kb;EN-US;&>&</A>" );
   print $0, "<BR>";
  }
------------------ end of HFNetChk.awk ------------------



Relevant Pages

  • RE: Hfnetchk scans every file
    ... In response to your comment about hfnetchk. ... a CD install, or a network install where the source isn't available, new ... > Michael, your statement, "...Windows should prompt for a service pack ... > The Layout.inf file is updated with an additional source for Windows ...
    (Focus-Microsoft)
  • RE: Windows 2000 Patch Order
    ... for example, say you install a hotfix with a dll version of 2, then another ... hfnetchk should do the same. ... > Subject: Windows 2000 Patch Order ...
    (Focus-Microsoft)
  • Re: Shared Folders in WINXP Pro SP2 and hfnetchk v3.86/ MBSA 2.0 problem
    ... I went into the MBSA news group and found the answer to that question. ... installed and ran the free hfnetchk v3.86 from Shavlik Technologies ... >> MS Windows Update web site, 2) simple slipstreamed install of WINXP Pro ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Shared Folders in WINXP Pro SP2 and hfnetchk v3.86/ MBSA 2.0 problem
    ... > In a single computer, workgroup set up (such as my computer at home! ... installed and ran the free hfnetchk v3.86 from Shavlik Technologies ... > MS Windows Update web site, 2) simple slipstreamed install of WINXP Pro ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Baseline Security Analyzer
    ... > command-line HFNETCHK mode. ... Verbose mode when run from the ... >> install directory. ...
    (microsoft.public.security)