Sysprep fails to remove apps for current user, how to reset windows store apps to be provisioned for all users?

Anonymous
2024-11-04T21:55:24+00:00

Running windows 11 23H2

On a machine for a company. On a domain and has group policies.

Objective: Sysprep the machine to create an image.

Problem: Sysprep failing when checking for provisioned apps.

  • tried to remove user apps and still the issue is still present.
  • tried several Powershell scripts to uninstall and plenty of restarts and that didn't fix the issue.
  • every Powershell script I run just turns red with all errors.
  • I think some windows store apps didn't uninstall.

Sysprep error log:

2024-11-04 13:41:30, Info SYSPRP Entering SysprepGeneralizeValidate (Appx) - validating whether all apps are also provisioned.

2024-11-04 13:41:30, Error SYSPRP Package AppUp.IntelGraphicsExperience_1.100.5635.0_x64__8j3eq9eme6ctt was installed for a user, but not provisioned for all users. This package will not function properly in the sysprep image.

2024-11-04 13:41:30, Error SYSPRP Failed to remove apps for the current user: 0x80073cf2.

2024-11-04 13:41:30, Error SYSPRP Exit code of RemoveAllApps thread was 0x3cf2.

2024-11-04 13:41:30, Error SYSPRP ActionPlatform::LaunchModule: Failure occurred while executing 'SysprepGeneralizeValidate' from C:\Windows\System32\AppxSysprep.dll; dwRet = 0x3cf2

2024-11-04 13:41:30, Error SYSPRP SysprepSession::Validate: Error in validating actions from C:\Windows\System32\Sysprep\ActionFiles\Generalize.xml; dwRet = 0x3cf2

2024-11-04 13:41:30, Error SYSPRP RunPlatformActions:Failed while validating Sysprep session actions; dwRet = 0x3cf2

2024-11-04 13:41:30, Error [0x0f0070] SYSPRP RunDlls:An error occurred while running registry sysprep DLLs, halting sysprep execution. dwRet = 0x3cf2

2024-11-04 13:41:30, Error [0x0f00d8] SYSPRP WinMain:Hit failure while pre-validate sysprep generalize internal providers; hr = 0x80073cf2

2024-11-04 13:41:31, Info [0x0f0052] SYSPRP Shutting down SysPrep log

2024-11-04 13:41:31, Info [0x0f004d] SYSPRP The time is now 2024-11-04 13:41:31

Please advise, thank you!!

***moved from Windows / Windows 11 / Performance and system failures***

Windows for business | Windows Client for IT Pros | Devices and deployment | Set up, install, or upgrade

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question. To protect privacy, user profiles for migrated questions are anonymized.

0 comments No comments
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2024-11-06T01:50:55+00:00

    Hello,

    Thank you for posting in Microsoft Community forum.

    Based on the description, I understand your question is related to sysprep.

    According to the error logs, the error is related to the Intel Graphics Experience app not being provisioned for all users. This error can occur when certain apps are installed for a specific user but not provisioned for all users, causing issues during the Sysprep process.

    Open PowerShell with Admin Rights, run the following command to list all installed packages:

    Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like '*IntelGraphicsExperience*' } | Format-List -Property Name, PackageFullName, PackageUserInformation, InstallLocation, SignatureKind
    

    Then remove package if the package is listed as Installed:

    Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like '*IntelGraphicsExperience*' } | Remove-AppxPackage -AllUsers
    

    Run the following command to remove the provisioning of the package, replace <PackageFullName> with the full name of the Intel Graphics Experience package.

    Remove-AppxProvisionedPackage -Online -PackageName <PackageFullName>
    

    After removing the package and its provisioning, try running Sysprep again.

    Have a nice day. 

    Best Regards,

    Molly

    0 comments No comments
  2. Anonymous
    2024-11-11T08:02:29+00:00

    Hello,

    Try remove the "<>" in the last command and run again:

    Remove-AppxProvisionedPackage -Online -PackageName AppUp.IntelOptaneMemoryandStorageManagement_20.0.1011.0_x64__8j3eq9eme6ctt
    

    Best regards,

    Molly

    0 comments No comments
  3. Anonymous
    2024-12-02T19:17:05+00:00

    Hi Molly,

    I'm using your PowerShell scripts and the first 2 work, but I'm having a problem with the last one. Getting an error: "The system cannot find the file specified". It shows that it is installed and the install location, but when I put the full path to the file it then gives an error: "A positional parameter cannot be found that accepts argument 'Files\WindowsApps\Microsoft.Copilot_1.1.9.0_neutral__8wekyb3d8bbwe".

    Not sure what I'm doing wrong, but this is preventing me from using sysprep. Have you come across anyone else having this problem with Copilot?

    Thanks,

    Darryl Shaw

    0 comments No comments
  4. Anonymous
    2024-11-06T19:01:27+00:00

    Hello Molly, thank you so much.

    Your response has gotten me further than anything I have tried already.

    I was able to run those first two powershell scripts, but then the last one has an errror message.

    ***NOTE*** my recent error logs are showing the AppUp.IntelOptaneMemoryandStorageManagement_20.0.1011.0_x64__8j3eq9eme6ctt is the problem now.

    First powershell script

    PS C:\Users\Administrator> Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like '*IntelOptaneMemoryandStorageManagement*' } | Format-List -Property Name, PackageFullName, PackageUserInformation, InstallLocation, SignatureKind

    Name : AppUp.IntelOptaneMemoryandStorageManagement

    PackageFullName : AppUp.IntelOptaneMemoryandStorageManagement_20.0.1011.0_x

                         64\_\_8j3eq9eme6ctt 
    

    PackageUserInformation : {S-1-5-21-2048827335-1757301734-2137431137-1001

                         [S-1-5-21-2048827335-1757301734-2137431137-1001]: 
    
                         Installed, S-1-5-21-147575523-1060041785-2110205344-8766 
    
                         [TTC\LorenADM]: Installed, 
    
                         S-1-5-21-147575523-1060041785-2110205344-21800 
    
                         [TTC\TessADM]: Installed} 
    

    InstallLocation :

    SignatureKind : Store

    Second powershell script

    PS C:\Users\Administrator> Get-AppxPackage -AllUsers | Where-Object { $_.PackageFullName -like '*IntelOptaneMemoryandStorageManagement*' } | Remove-AppxPackage -AllUsers

    Third Powershell Script

    PS C:\Users\Administrator> Remove-AppxProvisionedPackage -Online -PackageName <AppUp.IntelOptaneMemoryandStorageManagement_20.0.1011.0_x64__8j3eq9eme6ctt>

    At line:1 char:52

    + Remove-AppxProvisionedPackage -Online -PackageName <AppUp.IntelOptane ...

    + ~

    The '<' operator is reserved for future use.

    **+ CategoryInfo          : ParserError: (:) [], ParentContainsErrorRecordExcep** 
    

    tion

    **+ FullyQualifiedErrorId : RedirectionNotSupported** 
    

    PS C:\Users\Administrator>

    Should I try something different? Thank you so much!

    1 person found this answer helpful.
    0 comments No comments