Re: Using VBS to scan NT machines for KB828028 (MS04-007)
From: R Dunn (q1c2_3m4e5t6a7l8_at_hotmail.com)
Date: 02/18/04
- Next message: Torgeir Bakken (MVP): "Re: Configuring folder and file permissions with a script"
- Previous message: corn29_at_ no_spam excite.com: "Configuring folder and file permissions with a script"
- In reply to: Richard Mueller [MVP]: "Re: Using VBS to scan NT machines for KB828028 (MS04-007)"
- Next in thread: R Dunn: "Re: Using VBS to scan NT machines for KB828028 (MS04-007)"
- Reply: R Dunn: "Re: Using VBS to scan NT machines for KB828028 (MS04-007)"
- Messages sorted by: [ date ] [ thread ]
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
> --
>
>
- Next message: Torgeir Bakken (MVP): "Re: Configuring folder and file permissions with a script"
- Previous message: corn29_at_ no_spam excite.com: "Configuring folder and file permissions with a script"
- In reply to: Richard Mueller [MVP]: "Re: Using VBS to scan NT machines for KB828028 (MS04-007)"
- Next in thread: R Dunn: "Re: Using VBS to scan NT machines for KB828028 (MS04-007)"
- Reply: R Dunn: "Re: Using VBS to scan NT machines for KB828028 (MS04-007)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|