question

RickSomeone-1151 avatar image
0 Votes"
RickSomeone-1151 asked SimonRenMSFT-3639 edited

Sysprep failing due to MS Apps.

I've read countless blogs and online 'fixes' to be able to sysprep/capture a VM through MDT when sysprep has a fit about provisioned apps.
I upgraded my VM from 1703 to 20H2. One of the apps giving me grief is Cortana, which you cannot remove, at least I couldn't.

I've seen suggestions of running Remove-Appx..... where you must do it for every single app you can find. That's way too much. Some won't delete because they are system required apps.

So what is the answer to getting a VM to sysprep after fixing the app deal? MS gave me an App-Cleaner tool that doesn't do much. I know from experience what the main issue is here.....there are more than one profile. I did not build this, our development team made this and added a few other profiles which will be needed on the image.
I can't imagine having to completely rebuild this image, with all the SQL info packed in. I mean, if that's the case, why not just build one in 20H2?

But then what about a future OS and running into app issues? So, I'm wondering how I can run some PS to remove all the unprovisioned apps to all users. I've seen about 12 suggestions on sites, and the replies have all been.....it doesn't work.

mem-cm-osdmem-mdt
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SimonRenMSFT-3639 avatar image
0 Votes"
SimonRenMSFT-3639 answered SimonRenMSFT-3639 edited

Hi,

Thanks for posting in Microsoft MECM Q&A forum.

We can use customize PowerShell script to remove built-in apps (or default apps) in the reference images. For more detailed steps, please refer to the awesome blogs:
Remove Built-in apps when creating a Windows 10 reference image
Remove Built-in apps for Windows 10 version 1809

Thanks for your time.

Best regards,
Simon


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.


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

The issue with this is....you've already got a WIM. The links show how to add some removals during deployment. I'm trying to Capture my VM to create a WIM, which
fails because of one app,

XBOXSpeechToTextOverlay.

If I can this crap off of my VM I can sysprep it then capture it to a WIM for MDT.
What is the sure cure method of removing this app?

0 Votes 0 ·

Hi,

Thanks for your reply.

Based on my search, this problem may be caused by a known issue for Windows 10 version 1703/1709. The removed apps might reappear if you removed the packages in one of the following ways:

If you removed the packages while the wim file was mounted when the device was offline.
If you removed the packages by running a PowerShell cmdlet on the device while Windows was online. Although the apps won't appear for new users, you'll still see the apps for the user account you signed in as.

Please refer to: How to keep apps removed from Windows 10 from returning during an update

Thanks for your time.

Best regards,
Simon


0 Votes 0 ·