Re: Using VBS to scan NT machines for KB828028 (MS04-007)

From: R Dunn (q1c2_3m4e5t6a7l8_at_hotmail.com)
Date: 02/18/04


Date: Wed, 18 Feb 2004 13:22:43 -0600

If you are interested, you could try my script which will do much more than
just one hotfix...

http://uphold2001.brinkster.net/vbshf/forum

How are you getting this to work with NT4 machines? WMI never returns a
hotfixID value when I run anything against them - - I'm running WMI 1.5 and
WSH 5.6.

Rob

"Richard Mueller [MVP]" <rlmueller-NOSPAM@ameritech.NOSPAM.net> wrote in
message news:e8S7EBl9DHA.3820@tk2msftngp13.phx.gbl...
> bogman wrote:
>
> > The following code is an example of a script I use for updating
> > Machines with new hotfixes etc.
> >
> > With NT4 machines even though the Hotfix isn't present The Flag
> > bolHFFound gets changed from False to True.
> >
> > It works ok on W2k and XP machines
> >
> > Any one know why this happens or how I can solve?
> >
> > Thanks
> >
> >
> >
> > 'Debug Entry
> > WScript.Echo "WMIInstance : " & Hex(Err.Number) & " " &
> > Err.Description
> >
> > bolHFFound = False
> >
> > 'Debug Entry
> > WScript.Echo "Found = " & bolHFFound
> >
> > For Each item In objWMIInstance
> >
> > If (item.HotFixID = "KB828028") Then
> >
> > 'Debug Entry
> > WScript.Echo "Hotfix detected " & item.HotFixID
> > bolHFFound = True
> >
> > End If
> >
> > Next
> >
> > 'Debug Entry
> > WScript.Echo "Found = " & bolHFFound
>
> Hi,
>
> I think I would have to see more of the code, but two things come to mind.
> First, do you use "On Error Resume Next". If so, this might be masking the
> real problem. Second, do all of the NT machines have WMI installed? If any
> do not, and you have "On Error Resume Next", you might be checking
instances
> on the previous computer. WMI must be installed on NT clients.
>
> --
> Richard
> Microsoft MVP Scripting and ADSI
> HilltopLab web site - http://www.rlmueller.net
> --
>
>



Relevant Pages

  • Re: Find Default Network Card NIC
    ... the code is identical on the two machines. ... For information about WMI you can start from the Microsoft Script Center ... Where NetConnectionID '' ...
    (microsoft.public.scripting.vbscript)
  • Re: Find Default Network Card NIC
    ... the code is identical on the two machines. ... Where can I look up all this useful WMI stuff? ... For information about WMI you can start from the Microsoft Script Center ...
    (microsoft.public.scripting.vbscript)
  • Re: 80041021 error - GetObject stdRegProv
    ... On a very small number of machines I see this ... error code 80041021, with no further explanation. ... it references is the WMI GetObject where I grab the stdRegProv. ... But the script runs flawlessly on ...
    (microsoft.public.scripting.vbscript)
  • Re: Creating a session in windows to auth to remote machines
    ... machines because they're all in the same domain and I run the script ... username etc. with WMI. ...
    (comp.lang.python)
  • RE: Does WMI have to be installed on Remote Computer?
    ... IMHO this looks like a well constructed and very vell commented script. ... WMI comes as standard on w2k w2k3 and xp, ... does WMI need to be installed on the remote computer in order for a ... ''' First try to ping the server. ...
    (microsoft.public.scripting.vbscript)