Jump to content

Vista problem


Recommended Posts

Hello,

this sometimes doesn't run in VistaSP1 command line boxes (but does on XP and 2003 Server). If it runs, it takes quite long to start. The funny thing is it runs very smooth in Windows Server 2008. Does anybody have a clue why?

;####################################################################
;#
;#  Christoph Herdeg, August 2008
;#  http://www.cs-it-solutions.de
;#
;####################################################################

; Set AutoIt to Commandline User Interface mode
; =============================================================
#AutoIt3Wrapper_Change2CUI=y

; Declare the needed variables
; =============================================================
Global $s_ComputerName = @ComputerName
Global $objWMIservice
Global $colItems
Global $objItem
Global $a_Text

; Set the WMI provider to \root\cimv2 of the local host
; =============================================================
$objWMIservice = ObjGet("winmgmts:\\" & $s_ComputerName & "\root\cimv2")

; Query for items of class win32_quickfixengineering that start with the characters K or Q
; =============================================================
If (IsObj($objWMIservice)) And (Not @error) Then
    $colItems = $objWMIservice.ExecQuery("SELECT * FROM win32_quickfixengineering WHERE HotFixId LIKE ""[KQ]%""")
    For $objItem In $colItems
        $a_Text &= "Patch ID: " & $objItem.HotFixId & @CRLF
    Next
EndIf   

; Writes ot the installed patches to the command line
; =============================================================
ConsoleWrite("" & @CRLF & $a_Text)

Many thanks for your 2 Cents,

Best Regards,

Chris

Edited by cherdeg
Link to comment
Share on other sites

How many hotfixes does WMI have to query on each different machine? Try comparing like machines by deploying it on a freshly installed, but not updated/patched version and see what the results are.

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
 Share

  • Recently Browsing   0 members

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