Windows 10 1909 upgrade fails

Bert Schillemans 1 Reputation point
2020-10-20T09:56:57.693+00:00

We are upgrade a customer from 1803 tot 1909 with SCCM task sequence. The upgrade is successful but the reports shows the most time that the upgrade is failed on the last step (5). I have found error: Error Task Sequence Manager failed to execute task sequence. Code 0x80041010 in the smsts.log. But cant find any solution for this error. I have added some screenshots from the smsts.log and report.
The task sequence:

  1. Check Readiness for Upgrade
  2. Upgrade Operating System with ISO
  3. Restart Computer - The currently installed default OS
  4. Powershell script for keeping store apps

Does anyone have a hint or solution for this problem?

33643-1.png
33635-2.png
33573-3.png
33661-4a.png

33607-4b.png

Microsoft Configuration Manager
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Fiona Yan-MSFT 2,311 Reputation points
    2020-10-21T05:55:29.307+00:00

    @Bert Schillemans

    Thank you for posting in Microsoft Q&A forum.

    -->As we mentioned, our reports shows the upgrade is failed on the last step (5),could we share a task sequence screenshot to let us see the detailed steps?(coz I haven't see you mentioned it)

    -->The error code 0x80041010 means Invalid class.
    Here is a similar situation for you to refer to :
    wmi-errors-in-smsts-log-after-restart-computer-step-in-an-in-place-upgrade-task-sequence-sccm-1806-cb
    Note: this is non-official article just for your reference.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Bert Schillemans 1 Reputation point
    2020-10-21T11:14:57.74+00:00

    Hi @Fiona Yan-MSFT
    Thanks for your quick reply.
    This is the task sequence:
    34024-tasksequence-1.png
    Options tab:
    34025-tasksequence-2.png

    The powershell script (*.AppsToKeep.xml *=company)

    # Script removes all Windows 10 apps you don't want to keep  
    # Version 1.0: First release  
    # Version 1.1: Changed remove AppxProvisionedPackage from blacklist to whitelist approach  
    # Version 1.2: Remove WindowsPackage "Contact Support"  
    # Version 2.0: Moved Array $appsToKeep from script to XML input  
    
    param(  
        [parameter(Position=0,Mandatory=$false,ValueFromPipeline=$false,HelpMessage='xml filename like ***.AppsToKeep.xml')][string]$ConfigFile = ''  
        )  
    
    #If no xml defind use default  
    If (($ConfigFile -eq '') -or ($ConfigFile -eq $null)) {  
      $ConfigXML = "AppsToKeep.xml"  
    } Else {  
      $thisScript = $myInvocation.MyCommand.Path  
      $scriptRoot = Split-Path(Resolve-Path $thisScript)  
      $ConfigXML = Join-Path $scriptRoot $ConfigFile.Replace('.\','')  
    }  
    
    #Read Configuration File  
    $xml = [xml](get-content $configXML)  
    
    $AppsToKeep = $xml.AppsToKeep.AppName  
    If ($AppsToKeep -eq $null) {exit}  
    
    $AppsInstalled = Get-AppxProvisionedPackage -Online | % { $_.DisplayName }  
    $AppsToRemove = Compare-Object $AppsInstalled $AppsToKeep -PassThru  
    
    Foreach ($App in $AppsToRemove) {  
        Get-AppxProvisionedPackage -Online | ? { $_.DisplayName -eq $App } | Remove-AppxProvisionedPackage -Online  
    }  
    
    # Remove WindowsPackage by blacklist  
    Get-WindowsPackage -Online | ? { $_.PackageName -like "*ContactSupport*" } | Remove-WindowsPackage -Online -NoRestart  
    

    The AppsToKeep.xml:

    <?xml version="1.0" encoding="utf-8"?>  
    <AppsToKeep>  
    <AppName>Microsoft.Windows.Photos</AppName>  
    <AppName>Microsoft.WindowsCalculator</AppName>  
    <AppName>Microsoft.WindowsStore</AppName>  
    <AppName>Microsoft.MSPaint</AppName>  
    <AppName>Microsoft.Office.OneNote</AppName>  
    <AppName>Microsoft.WindowsCamera</AppName>  
    <AppName>Microsoft.MicrosoftStickyNote</AppName>  
    </AppsToKeep>  
    

    I wil check the non-official article, thanks!

    0 comments No comments

  3. Bert Schillemans 1 Reputation point
    2020-10-21T11:47:06.717+00:00

    I checked the article but there is no difference between the versions:

    Site version: 5.0.8968.1000
    Client version: 5.00.8968.1021


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.