{"id":758,"date":"2019-12-18T09:54:22","date_gmt":"2019-12-18T08:54:22","guid":{"rendered":"https:\/\/blog.4-it.net\/?p=758"},"modified":"2019-12-18T10:46:23","modified_gmt":"2019-12-18T09:46:23","slug":"wiederkehrender-fehler-bei-windows-update-installation","status":"publish","type":"post","link":"https:\/\/blog.4-it.net\/?p=758","title":{"rendered":"Wiederkehrender Fehler bei Windows Update-Installation"},"content":{"rendered":"\n<p> Vor kurzem stand ich bei einem Windows Server 2012 R2 vor der Herausforderung, dass sich ein bestimmtes Windows Update auf biegen und brechen nicht installieren lie\u00df. Die Installation schlug bei jedem neuen Versuch fehl. Neustarts, abgesicherter Modus, oder Zur\u00fccksetzen der lokalen Update-Datenbank des System brachten keinen Erfolg. Auch das manuelle Installieren brachte den gleichen Fehler hervor.<\/p>\n\n\n\n<p> Ein Blick in das CBS.log [<em>C:\\Windows\\Logs\\CBS\\CBS.log<\/em>], welches die letzten Komponenten der Windows Update-Installation aufzeichnet, brachte diesen Fehlercode hervor:&nbsp;<strong>0x800f0831<\/strong> <\/p>\n\n\n\n<p> Nach weiterer Befassung mit diesem Fehlercode, erhielt ich die Erkenntnis, dass ein vorheriges Update scheinbar nicht ordnungsgem\u00e4\u00df installiert wurde. im Updateverlauf des betroffenen Systems jedoch, wird das entsprechende Update als \u201eerfolgreich installiert\u201c deklariert. Der Vorgang der Installation scheint abgeschlossen, es ist allerdings so, dass bestimmte Bestandteile dieses Updates fehlen und nicht registriert wurden. Stichwort: \u201e<strong>Store corruption, manifest missing for package:<\/strong>\u2026\u201c und \u201e<strong>CBS_E_STORE_CORRUPTION<\/strong>\u201c und&nbsp;<strong>CBS Failed to execute execution chain<\/strong>. <\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.4-it.net\/wp-content\/uploads\/2019\/12\/cbs_error-1024x101-1.png\" alt=\"\" class=\"wp-image-759\" width=\"486\" height=\"48\" srcset=\"https:\/\/blog.4-it.net\/wp-content\/uploads\/2019\/12\/cbs_error-1024x101-1.png 1024w, https:\/\/blog.4-it.net\/wp-content\/uploads\/2019\/12\/cbs_error-1024x101-1-300x30.png 300w, https:\/\/blog.4-it.net\/wp-content\/uploads\/2019\/12\/cbs_error-1024x101-1-768x76.png 768w\" sizes=\"auto, (max-width: 486px) 100vw, 486px\" \/><\/figure>\n\n\n\n<p> Um nun in der Update-Chronologie fortfahren zu k\u00f6nnen, muss dieses Update zun\u00e4chst ordnungsgem\u00e4\u00df installiert werden. Erst dann k\u00f6nnen nachfolgende Updates, also die Updates die bei der Installation aktuell in einen Fehler laufen, erfolgreich installiert werden. <\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">#function to trim strings\n function Trim-Length {\n param (\n     [parameter(Mandatory=$True,ValueFromPipeline=$True)] [string] $Str\n   , [parameter(Mandatory=$True,Position=1)] [int] $Length\n )\n     $Str[0..($Length-1)] -join \"\"\n }\n Read the last failed update string from Update-CBS-Log\n $KbString = ((Select-String -Path $env:windir\\Logs\\CBS*.log -Pattern 'Store corruption, manifest missing for package:') -split \"_\")[-1] | select-object -Last 1\n Check if string is valid\n if (!$KbString) {\n     Write-Host \"\";\n     Read-Host \"No specific missing update-manifests and failures were found, please press enter to abort the script-process\u2026\";\n     exit\n }\n if ($KbString.StartsWith(\"KB\")) {\n     Write-Host \"The string is valid\";\n } else {\n     Write-Host \"\";\n     Read-Host \"No specific missing update-manifests and failures were found, please press enter to abort the script-process\u2026\";\n     exit\n }\n trim the string after eight letters\n $FailedInstallationKb = $KbString | Trim-Length 9\n Show the failed update\n cls\n Write-Host \"\";\n Write-Host \"The following Windows Update was not installed correctly or the update manifest is missing: \" -NoNewline; Write-Host $FailedInstallationKb -ForegroundColor Yellow;\n Write-Host \"\";\n Write-Host \"Please download the Windows Update at the following link and install it again:\";\n Write-Host \"https:\/\/catalog.update.microsoft.com\/v7\/site\/Search.aspx?q=$FailedInstallationKb\" -ForegroundColor Green;\n Write-Host \"\";\n Write-Host \"After manually re\/installing the failed update showing above, you can proceed with the installation of the regular updates.\" -ForegroundColor Yellow;\n Write-Host \"\";\n pause<\/pre>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/blog.4-it.net\/wp-content\/uploads\/2019\/12\/CBSLog_find_Error.zip\">CBSLog_find_Error.zip<\/a><a href=\"https:\/\/blog.4-it.net\/wp-content\/uploads\/2019\/12\/CBSLog_find_Error.zip\" class=\"wp-block-file__button\" download>Herunterladen<\/a><\/div>\n\n\n\n<p> Ich empfehle das Skript wie immer zun\u00e4chst in einer PowerShell ISE auszuf\u00fchren. Aber auch das direkte Ausf\u00fchrung als .ps1 Datei ist m\u00f6glich.\u00a0 QUELLE:  <a href=\"https:\/\/it-feed.de\/wiederkehrende-fehler-bei-windows-update-installation\/\">https:\/\/it-feed.de\/wiederkehrende-fehler-bei-windows-update-installation\/<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Vor kurzem stand ich bei einem Windows Server 2012 R2 vor der Herausforderung, dass sich ein bestimmtes Windows Update auf biegen und brechen nicht installieren lie\u00df. Die Installation schlug bei jedem neuen Versuch fehl. Neustarts, abgesicherter Modus, oder Zur\u00fccksetzen der lokalen Update-Datenbank des System brachten keinen Erfolg. Auch das manuelle Installieren brachte den gleichen Fehler [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,27],"tags":[],"class_list":["post-758","post","type-post","status-publish","format-standard","hentry","category-betriebssysteme","category-windows-server-2012"],"_links":{"self":[{"href":"https:\/\/blog.4-it.net\/index.php?rest_route=\/wp\/v2\/posts\/758","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.4-it.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.4-it.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.4-it.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.4-it.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=758"}],"version-history":[{"count":17,"href":"https:\/\/blog.4-it.net\/index.php?rest_route=\/wp\/v2\/posts\/758\/revisions"}],"predecessor-version":[{"id":780,"href":"https:\/\/blog.4-it.net\/index.php?rest_route=\/wp\/v2\/posts\/758\/revisions\/780"}],"wp:attachment":[{"href":"https:\/\/blog.4-it.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.4-it.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=758"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.4-it.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}