158 Benutzer online
22. Juli 2025, 04:33:03

Windows Community



 Antworten / AufrufeThemen mit dem Stichwort impersonation
3
Antworten
6318
Aufrufe
VBS-Skript "listhotfixes.vbs" funktioniert nicht
Begonnen von PC-Freak
10. Februar 2008, 19:24:58
Ich hab im Internet folgendes Skript gefunden, es listet die installierten Updates auf. aber leider funktioniert es nicht.

[code]
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\" & strComputer & "\root\cimv2")
Set colQuickFixes = objWMIService.ExecQuery _
("Select * from Win32_QuickFixEngineering")

For Each objQuickFix in colQuickFixes

Wscript.Echo "Computer: " & objQuickFix.CSName
Wscript.Echo "Beschreibung: " & objQuickFix.Description
Wscript.Echo "Hotfix ID: " & objQuickFix.HotFixID
Wscript.Echo "Installationsdatum: " & objQuickFix.InstallDate
Wscript.Echo "Installiert von: " & objQuickFix.InstalledBy
Next
[/code]

Es kommt die Fehlermeldung im Anhang

installationsdatuminstallationsdatum wmicwmic strassstrass 9375650593756505 20072007 20082008 malmal erstellterstellt wshwsh anheftenanheften execqueryexecquery colquickfixescolquickfixes abdockenabdocken 8382954283829542 visualvisual dateidatei ohneohne patchespatches installierteinstallierte beispielebeispiele probelmprobelm qfeqfe skriptenskripten d24d24 installiertinstalliert gefundengefunden updatesupdates scriptscript hotfixeshotfixes programmierenprogrammieren