Bootable Media (USB) cannot be created after Hotfix for v 2403

Schäfer, Max 0 Reputation points
2024-09-26T12:36:12.5566667+00:00

Hello everybody,
I am not able to create any USB-Media from SCCM anymore. I recently installed the Hotfix for v 2403 (KB29166583) and since then the Creation of the bootable Media fails.
Following is shown in the CreateTsMedia.log:

Error invoking WMI method SMS_TaskSequencePackage.GetTsPoliciesSaMedia (0x80041001)	
26.09.2024 14:25:49	1072 (0x0430)

Failed to initialize Toolkit and policy. Verify the user is authorized to create Task Sequence media and has local admin permissions.	26.09.2024 14:25:49	1072 (0x0430)

MediaGenerator::~MediaGenerator()	26.09.2024 14:25:49	1072 (0x0430)

Failed to create media generator (0x80041001)	26.09.2024 14:25:49	1072 (0x0430)

CreateTsMedia failed with error 0x80041001, details=''	26.09.2024 14:25:49	1072 (0x0430)

I got Admin-rights on the machine and also in SCCM itself. I tried the following things without any effect:

  • Try to create the bootable Media on the SCCM-Server
  • Try to create a .iso instead of a bootable USB-Stick
  • Changed the staging-Directory
  • Turned off Antivirus
  • Chose another Task-Sequence
  • Tried different SCCM-Admin-User

Right now in the Time of upgrading/installing machines to Win11 this is the worst thing what could happen.

Is someone facing these Error, too? Thanks for your help.

Microsoft Configuration Manager
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. XinGuo-MSFT 17,931 Reputation points
    2024-09-27T02:34:36.62+00:00

    Hi,

    It looks like you’re encountering an issue with the WMI method SMS_TaskSequencePackage.GetTsPoliciesSaMedia resulting in the error code 0x80041001. This error typically indicates a problem with permissions or the initialization of the toolkit and policy.

    Here are a few steps you can take to troubleshoot and resolve this issue:

    1. Verify Permissions:
      • Ensure that the user account running the task sequence has the necessary permissions to create Task Sequence media.
      • The user should have local administrator rights on the machine where the task sequence is being executed.
    2. Check WMI Repository:
      • Sometimes, the WMI repository can become corrupted. You can try rebuilding the WMI repository:
             winmgmt /salvagerepository
             winmgmt /resetrepository
        

  2. XinGuo-MSFT 17,931 Reputation points
    2024-09-27T06:59:28.69+00:00

    Hi,

    It seems like we’ve tried all the recommended solutions, but it’s still not working.

    Let’s try manually creating the media through the command line. Use the following PowerShell script and replace the variables accordingly.

    $sitecode = "XXX" 
    $DPName = "Server.domain.com" 
    $tsname = "Win11_Prod" 
    $outiso = "e:\temp\DellCFI.iso" 
    $tempfoldr = "d:\temp" 
    $vars=@{} 
    $vars.add("CFI","True") 
    
    Import-Module ($Env:SMS_ADMIN_UI_PATH.Substring(0,$Env:SMS_ADMIN_UI_PATH.Length-5) + '\ConfigurationManager.psd1') -Verbose:$false  
    Set-Location -Path ($sitecode + ':') 
    
    $TaskSequence = Get-CMTaskSequence -Name $tsname -Fast 
    $DistributionPoint = Get-CMDistributionpoint -SiteCode $sitecode -SiteSystemServerName $DPName 
    
    New-CMStandaloneMedia -MediaType CdDvd -Path $outiso -TaskSequence $TaskSequence -DistributionPoint $DistributionPoint -MediaSize SizeUnlimited -TemporaryFolder $tempfoldr -Variable $vars
    
    

  3. XinGuo-MSFT 17,931 Reputation points
    2024-09-30T07:49:38.23+00:00

    Hi,

    How did you make your selection in this step? You might consider creating an ISO file first then burning it to a USB drive.

    image


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.