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 14:41:16 -0600

Sorry, I guess I mis-read your post - I see that you have troubles with NT 4
as well - - whew, I thought I was really missing the boat on something!

Rob
"R Dunn" <q1c2_3m4e5t6a7l8@hotmail.com> wrote in message
news:%23XsKWSl9DHA.1672@TK2MSFTNGP12.phx.gbl...
> 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: WMI repository error
    ... Rob ... If the issue is a WMI repository ... a repository corruption is likely. ...
    (microsoft.public.win32.programmer.wmi)
  • Re: change time zone
    ... >> is there a way to change the time zone through WMI? ... > Input value behind /Z is from the Display value under the registry key ... > Microsoft MVP Scripting and WMI, ...
    (microsoft.public.scripting.vbscript)
  • Re: Changing Time Zone across entire environment
    ... WMI would have to be installed on NT and Win9x clients. ... Microsoft MVP Scripting and ADSI ... Hilltop Lab - http://www.rlmueller.net ...
    (microsoft.public.windows.server.scripting)
  • Re: What Im I doing wrong?
    ... if I can only remember the next time I work with WMI ... ... >> Note If you attempt to get this property from an SWbemObjectSet ... > torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.scripting.vbscript)
  • Re: 100 event limit for queries
    ... > for such a fix when it is ready? ... Cannot Use WMI to Query HKEY Users After You Install SP4 ... Then, later on, this update would be part of a service pack for the ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway ...
    (microsoft.public.win32.programmer.wmi)