Hallo!
meine situation momentan:
Ich hab ca. 300 PC's, einige mit Windows 7 und der rest mit Windows XP. Die Benutzer auf den jeweiligen PC's haben Hauptbenutzer-Rechte bzw bei Windows 7 Benutzer-Rechte. Schreibrechte auf C:\ hat der User auch unter Windows XP.
Manche PC's laufen 24/7 durch. Diese will ich per Script von meinem PC aus updaten und danach automatisch neustarten.
DC+AD vorhanden!
Unter Windows 7 habe ich dieses Script verwendet:
Set updateSession = CreateObject("Microsoft.Update.Session")
Set updateSearcher = updateSession.CreateupdateSearcher()
Set searchResult = updateSearcher.Search("IsInstalled=0 and Type='Software'")
If searchResult.Updates.Count = 0 Then
WScript.Quit
End If
Set updatesToDownload = CreateObject("Microsoft.Update.UpdateColl")
For I = 0 to searchResult.Updates.Count-1
Set update = searchResult.Updates.Item(I)
updatesToDownload.Add(update)
Next
Set downloader = updateSession.CreateUpdateDownloader()
downloader.Updates = updatesToDownload
downloader.Download()
Set updatesToInstall = CreateObject("Microsoft.Update.UpdateColl")
For I = 0 To searchResult.Updates.Count-1
set update = searchResult.Updates.Item(I)
If update.IsDownloaded = true Then
updatesToInstall.Add(update)
End If
Next
Set installer = updateSession.CreateUpdateInstaller()
installer.Updates = updatesToInstall
Set installationResult = installer.Install()
WScript.Quit
Das hat einwandfrei funktioniert. Hab mich per psexec (wird als Domänen-Admin ausgeführt) auf den jeweiligen PC verbunden und dann dieses Script ausgeführt - fertig.
Dann wollte ich das gleiche bei WindowsXP Rechnern ausprobieren -> Fehler! ... er ladet zwar die Updates herunter, aber bricht bei der Installation ab.
Danach hab ich mich mit WUInstall.exe herumgespielt. Hier tritt der selbe Fehler wieder auf, er ladet die Updates herunter, jedoch kommt bei der Installation ein Fehler vor.
Diese Fehlermeldungen kommen im WindowsUpdate.log:
2011-03-28 12:49:31:662 416 5d0 COMAPI >>-- RESUMED -- COMAPI: Install [ClientId = <NULL>]
2011-03-28 12:49:31:662 416 5d0 COMAPI - Install call complete (succeeded = 0, succeeded with errors = 0, failed = 88, unaccounted = 0)
2011-03-28 12:49:31:678 416 5d0 COMAPI - Reboot required = No
2011-03-28 12:49:31:678 416 5d0 COMAPI - WARNING: Exit code = 0x00000000; Call error code = 0x80240022
2011-03-28 12:49:31:662 1016 19c Agent WARNING: WU client fails to process install call notificationfor update handler with error 0x80070005
wäre sehr dankbar für ein paar tips

LG
akov