Hallo Leute, ich versuch schon seit einigen Tagen ein Updateproblem zu lösen.
Wie verwenden in der Firma mehrere VMs und meine Aufgabe ist es diese automatisch mit den aktuellen Windows Updates zu versorgen.
Bei den meisten Systemen nutzt das auch schon ganz gut.
Ich verwende hierfür die vmrun.exe um das System automatisch hochzufaren und um auf der vm ein vb skript anzustoßen, welches die vorhandenen Updates installiert.
Die vmrun.exe läuft mit den gleichen Berechtigungen wie der Standartbenutzer auf dem System, welcher auch Mitglied in der Admin Gruppe ist.
Wenn ich bei der VM abgemeldet bin und führe das Skript über vmrun aus, bekomme ich eine Fehlermeldung und im Windows Update Log steht:
2009-08-07 14:39:40:822 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
Wenn ich mich aber anmelde und starte das Skript dann funktioniert das automatische installieren.
Ich weiß nicht mehr weiter hab schon alle Microsoft Tipps zu den Fehler versucht...alles ohne Erfolg.
Ich hoffe ihr könnt mir helfen.
Hier noch ein paar Zeilen aus der Update Log Datei:
2009-08-07 14:39:40:151 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:166 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:166 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:166 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:166 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:166 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:166 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:166 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:166 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:166 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:166 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:166 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:166 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:166 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:822 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:822 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:822 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:822 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:822 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:822 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:822 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:822 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:838 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:838 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:838 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:838 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:838 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:838 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:838 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:838 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:838 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:838 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:838 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:838 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:854 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:854 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:854 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:854 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:854 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:854 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:854 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:854 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:854 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:854 828 3bc Service WARNING: GetUserTokenFromSessionId failed with error 800704dd for session 0
2009-08-07 14:39:40:854 828 3bc AU FATAL: Failed to Unserialize from data store, error = 0x800704DD
2009-08-07 14:39:40:885 828 3bc AU # WARNING: Exit code = 0x800704DD
2009-08-07 14:39:40:885 828 3bc AU ########### AU: Uninitializing Automatic Updates ###########
2009-08-07 14:39:40:885 828 3bc AU WARNING: InitAUComponents Failed, will restart AU in 30 mins, error = 0x800704DD
2009-08-07 14:39:40:885 828 3bc AU AU Restart required....
2009-08-07 14:39:40:885 2628 a48 Misc =========== Logging initialized (build: 7.2.6001.788, tz: +0200) ===========
2009-08-07 14:39:40:885 2628 a48 Misc = Process: C:\WINDOWS\System32\WScript.exe
2009-08-07 14:39:40:885 2628 a48 Misc = Module: C:\WINDOWS\system32\wuapi.dll
2009-08-07 14:39:40:885 2628 a48 COMAPI WARNING: Unable to trigger Automatic Updates to detect now, hr=8024A000
2009-08-07 14:39:46:354 828 764 Report *********** Report: Initializing static reporting data ***********
2009-08-07 14:39:46:354 828 764 Report * OS Version = 5.2.3790.2.0.196880
2009-08-07 14:39:46:588 828 764 Report * Computer Brand = VMware, Inc.
2009-08-07 14:39:46:588 828 764 Report * Computer Model = VMware Virtual Platform
2009-08-07 14:39:46:604 828 764 Report * Bios Revision = 6.00
2009-08-07 14:39:46:604 828 764 Report * Bios Name = PhoenixBIOS 4.0 Release 6.0
2009-08-07 14:39:46:604 828 764 Report * Bios Release Date = 2008-07-29T00:00:00
2009-08-07 14:39:46:604 828 764 Report * Locale ID = 1031
Und hier das vb Skript:
Set objSession = CreateObject("Microsoft.Update.Session")
Set AutoUpdate = CreateObject("Microsoft.Update.AutoUpdate")
Set UpdatesToInstall = CreateObject("Microsoft.Update.UpdateColl")
Autoupdate.DetectNow()
Set UpdateSearcher = objSession.CreateUpdateSearcher
Set SearchResult = UpdateSearcher.Search("IsInstalled=0 and Type='Software'")
If Err.Number <> 0 Then
msgbox Err.Description
End If
On Error GoTo 0
For i = 0 To SearchResult.Updates.Count-1
Set Update = SearchResult.Updates.Item(I)
Set objCategories = Update.Categories
strCatName = objCategories.Item(0).Name 'Falls nur eine bestmmte Kategorie von Updates installiert werden soll
UpdatesToInstall.Add(Update)
Next
If SearchResult.Updates.Count = 0 Then
'msgbox "Keine Updates vorhanden"
WScript.Quit
Else
Set Installer = objSession.CreateUpdateInstaller()
Installer.Updates = UpdatesToInstall
Set InstallationResult = Installer.Install()
End If
'msgbox "Updates wurden Installiert"
WScript.Quit(0)