Sysprep brakes my image (it's prob me)

78673108 0 Reputation points
2024-09-26T19:07:48.3733333+00:00

So my organisaties bought 150 more laptops but there not the pro version anymore there the home edition.

so i'm trying to make a new image to deploy on the 150 new laptops this time with a unnatende file.

when i run the sysprep command like

sysprep /generalize /oobe /shutdown /unattend:C:\dell\backup\autounattend.xml

i prompts me with a error that

MicrosoftWindows.Client.WebExperience_524.24900.80.0_x64__cw5n1h2txyewy

package is installed for one user
when running this command

get-appxpackage -allusers MicrosoftWindows.Client.WebExperience_524.24900.80.0_x64__cw5n1h2txyewy | Remove-appxpackage -allusers

it says it's removed but it's still there. It says its removed but when i run sysprep again its there again.

so i read on linkdin to use this code to remove non all user packages to save time

Get-AppxPackage | Where-Object { $_.IsFramework -eq $false } | Remove-AppxPackage

it removes a ton of packages and there i think it's going wrong

after running this command sysprep runs but the image isn't working
when the system restartes it states that windows needs to be repaired and i have to start all over again

can anybody help
thank you in advance

(im doing this for a non-profit organisation that lends laptops to people who cant afford it)

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. 78673108 0 Reputation points
    2024-09-26T19:30:23.45+00:00

    the error i get after running is :
    \windows\system32\winload.efi is missing

    error code 0xc000000f

    so the image can't be used

    0 comments No comments

  2. 78673108 0 Reputation points
    2024-09-27T17:40:06.46+00:00

    Now i just reinstalled windows and all drivers and made a clone from that without running sysprep because its just to set it back to that system when i mess up sysprep again.

    and just because of that windows does not want to boot anymore and displayes

    the error :

    \windows\system32\winload.efi is missing
    error code 0xc000000f
    

    clonezilla should not brake windows install just by making a image of the system.

    0 comments No comments

  3. Anonymous
    2024-09-30T06:17:07.1133333+00:00

    Hello,

    According to your description, I also suggest that remove the provisioning package.

    Sysprep fails with Microsoft Store apps - Windows Client | Microsoft Learn

    Resolving Sysprep error – “app was installed for a user, but not provisioned for all users” – SMBtotheCloud

    Best Regards,

    Hania Lian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

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.