{"id":522,"date":"2023-04-29T13:32:50","date_gmt":"2023-04-29T11:32:50","guid":{"rendered":"https:\/\/blog.vermeerschconsulting.be\/?p=522"},"modified":"2023-05-11T19:51:30","modified_gmt":"2023-05-11T17:51:30","slug":"windows-11-22h2-cu-update-failing-during-task-sequence-because-of-uup","status":"publish","type":"post","link":"https:\/\/blog.vermeerschconsulting.be\/index.php\/2023\/04\/29\/windows-11-22h2-cu-update-failing-during-task-sequence-because-of-uup\/","title":{"rendered":"Windows 11 22H2 CU update failing during Task Sequence because of UUP"},"content":{"rendered":"\n<p>Since the new UUP updates for Windows 11 22H2 we experienced an issue that the latest CU was not downloading\/installing during the &#8220;Install Software Update&#8221; step of our OS deployment Task Sequence. It remains exactly 30 minutes trying to download the same update, then it tried again for 30 minutes. Resulting in a one-hour delay in the deployment. <\/p>\n\n\n\n<!--more-->\n\n\n\n<figure class=\"wp-block-image size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/trying-to-download-update.png\" alt=\"Trying to download update\" class=\"wp-image-523\" width=\"629\" height=\"175\" srcset=\"https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/trying-to-download-update.png 629w, https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/trying-to-download-update-300x83.png 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n\n\n\n<p>After the OS deployment (OSD) was finished we could see the CU as required in Software Center and were able to install it right away. This means there was no issue on the backend, ConfigMgr is able to deploy the new UUP updates without any issue.<\/p>\n\n\n\n<p>Our ConfigMgr environment is version 2207 with HFRU. You need a minimum version of 2203 to be able to support UUP, so this was not the issue.<br><a href=\"https:\/\/techcommunity.microsoft.com\/t5\/windows-it-pro-blog\/get-ready-for-the-first-uup-on-premises-updates-coming-in-march\/ba-p\/3738461\" target=\"_blank\" rel=\"noreferrer noopener\">UUP on premises updates for Windows 11 | Windows IT Pro Blog (microsoft.com)<\/a><\/p>\n\n\n\n<p>After digging the logfiles we noticed the following errors<\/p>\n\n\n\n<figure class=\"wp-block-image size-medium\"><a href=\"https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/the-error-when-update-download-failed.png\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"77\" src=\"https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/the-error-when-update-download-failed-300x77.png\" alt=\"The error when update download failed\" class=\"wp-image-530\" srcset=\"https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/the-error-when-update-download-failed-300x77.png 300w, https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/the-error-when-update-download-failed-1024x261.png 1024w, https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/the-error-when-update-download-failed-768x196.png 768w, https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/the-error-when-update-download-failed-1536x392.png 1536w, https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/the-error-when-update-download-failed-1200x306.png 1200w, https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/the-error-when-update-download-failed.png 1552w\" sizes=\"auto, (max-width: 300px) 85vw, 300px\" \/><\/a><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>We contacted Microsoft support and also found other people having the same issue on <a href=\"https:\/\/twitter.com\/juergkoller\/status\/1648970572469026818\" data-type=\"URL\" data-id=\"https:\/\/twitter.com\/juergkoller\/status\/1648970572469026818\" target=\"_blank\" rel=\"noreferrer noopener\">Twitter<\/a>. <\/p>\n\n\n\n<p>Two &#8220;Install Software Update&#8221; steps with a reboot in between solved the issue. The CU was installed during the OSD Task Sequence. However, the extra hour (2&#215;30 mins) was not a good workaround for us so together with Microsoft we searched further to have a better solution.<\/p>\n\n\n\n<p>After checking WMI just before the &#8220;Install Software Updates&#8221; step we noticed there was a WUAgent version missing.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>WbemTest &#8220;root\\cimv2\\sms&#8221; Connect <\/li>\n\n\n\n<li>Query &#8220;Select * from Win32_WindowsUpdateAgentVersion&#8221; Apply<\/li>\n\n\n\n<li>Double click on the &#8220;Win32_WindowsUpdateAgentVersion&#8221;<\/li>\n\n\n\n<li>Check the &#8220;Version&#8221;<\/li>\n<\/ul>\n\n\n\n<p>After the first &#8220;Install Software Update&#8221; step the version was filled, so after the reboot, the second &#8220;Install Software Update&#8221; step was working.<\/p>\n\n\n\n<p>Microsoft confirmed we could test injecting the version before the first &#8220;Install Software Update&#8221; step.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"291\" height=\"71\" src=\"https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/extra-steps-in-the-task-sequence.png\" alt=\"Extra steps in the task Sequence\" class=\"wp-image-533\"\/><\/figure>\n\n\n\n<p>The &#8220;Inject WUAgent version in WMI&#8221; step is a simple Powershell script that gets the version of the wuaueng.dll file and inject it in WMI<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"740\" height=\"545\" src=\"https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/inject-wuagent-version-in-wmi-step.png\" alt=\"Inject WUAgent version in WMI step\" class=\"wp-image-534\" srcset=\"https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/inject-wuagent-version-in-wmi-step.png 740w, https:\/\/blog.vermeerschconsulting.be\/wp-content\/uploads\/2023\/04\/inject-wuagent-version-in-wmi-step-300x221.png 300w\" sizes=\"auto, (max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 984px) 61vw, (max-width: 1362px) 45vw, 600px\" \/><\/figure>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: powershell; title: ; notranslate\" title=\"\">\n# Get version from DLL\n$wuaversion = (Get-ItemProperty -Path &#039;C:\\Windows\\System32\\wuaueng.dll&#039;).VersionInfo.ProductVersion\n\n# Connect to the root\/cimv2\/sms WMI namespace\n$wmiNamespace = &quot;root\/cimv2\/sms&quot;\n$wmiScope = New-Object System.Management.ManagementScope(\\\\.\\root\\cimv2\\sms)\n$wmiScope.Connect()\n\n# Get the Win32_WindowsUpdateAgentVersion instance\n$updateAgentClass = &#x5B;System.Management.ManagementClass]&quot;${wmiNamespace}:Win32_WindowsUpdateAgentVersion&quot;\n$updateAgentInstance = $updateAgentClass.CreateInstance()\n\n# Set the Version property to the desired value \n$updateAgentInstance.Version = $wuaversion\n\n# Save the changes to WMI\n$updateAgentInstance.Put()\n\n<\/pre><\/div>\n\n\n<p>The extra reboot before the actual &#8220;Install Software Update&#8221; step is needed to get it working. You can try this workaround at your own risk but for us it seems to be working.<\/p>\n\n\n\n<p>The statement of Microsoft remains to add 2 &#8220;Install Software Update&#8221; steps with a reboot in between. <a href=\"https:\/\/techcommunity.microsoft.com\/t5\/configuration-manager-blog\/unified-update-platform-uup-faq-s\/ba-p\/3808697\" target=\"_blank\" rel=\"noreferrer noopener\">Unified update platform (UUP) FAQ&#8217;s &#8211; Microsoft Community Hub<\/a><\/p>\n\n\n\n<p>Microsoft is working on a hotfix for ConfigMgr, we could expect that this will be for the latest build 2303. So be prepared.<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since the new UUP updates for Windows 11 22H2 we experienced an issue that the latest CU was not downloading\/installing during the &#8220;Install Software Update&#8221; step of our OS deployment Task Sequence. It remains exactly 30 minutes trying to download the same update, then it tried again for 30 minutes. Resulting in a one-hour delay &hellip; <a href=\"https:\/\/blog.vermeerschconsulting.be\/index.php\/2023\/04\/29\/windows-11-22h2-cu-update-failing-during-task-sequence-because-of-uup\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Windows 11 22H2 CU update failing during Task Sequence because of UUP&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[22,85],"tags":[82,80,84,31,83,81,79],"class_list":["post-522","post","type-post","status-publish","format-standard","hentry","category-configmgr-memcm","category-windows-11","tag-22h2","tag-configmgr","tag-install-software-updates","tag-mem","tag-osd","tag-uup","tag-windows-11"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/blog.vermeerschconsulting.be\/index.php\/wp-json\/wp\/v2\/posts\/522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.vermeerschconsulting.be\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.vermeerschconsulting.be\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.vermeerschconsulting.be\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.vermeerschconsulting.be\/index.php\/wp-json\/wp\/v2\/comments?post=522"}],"version-history":[{"count":0,"href":"https:\/\/blog.vermeerschconsulting.be\/index.php\/wp-json\/wp\/v2\/posts\/522\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.vermeerschconsulting.be\/index.php\/wp-json\/wp\/v2\/media?parent=522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.vermeerschconsulting.be\/index.php\/wp-json\/wp\/v2\/categories?post=522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.vermeerschconsulting.be\/index.php\/wp-json\/wp\/v2\/tags?post=522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}