cherdeg Posted August 7, 2008 Share Posted August 7, 2008 (edited) 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 August 8, 2008 by cherdeg Link to comment Share on other sites More sharing options...
Paulchen Posted August 7, 2008 Share Posted August 7, 2008 On my Vista System work this script perfect in 6.5 second. Link to comment Share on other sites More sharing options...
Confuzzled Posted August 13, 2008 Share Posted August 13, 2008 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now