MSEndpointMgr / ConfigMgr

Microsoft Endpoint Configuration Manager scripts and tools
633 stars 282 forks source link

Invoke-RemoveBuiltinApps #193

Closed Typhoon87 closed 4 years ago

Typhoon87 commented 4 years ago

Hello I am using the Invoke-RemoveBuiltinApps PS script in a TS for bare metal reimage and find it sometimes hangs the TS and does not finish. The only changes I have made are adding a few additional white list apps.

White list of appx packages to keep installed

$WhiteListedApps = New-Object -TypeName System.Collections.ArrayList
$WhiteListedApps.AddRange(@(
    "Microsoft.BingWeather",
    "Microsoft.DesktopAppInstaller",
    "Microsoft.Messaging", 
    "Microsoft.MSPaint",
    "Microsoft.WindowsAlarms",
    "Microsoft.WindowsCamera",
    "Microsoft.Windows.Photos",
    "Microsoft.StorePurchaseApp",
    "Microsoft.MicrosoftOfficeHub",
    "Microsoft.MicrosoftStickyNotes",
    "Microsoft.WindowsAlarms",
    "Microsoft.WindowsCalculator", 
    "Microsoft.WindowsCommunicationsApps", # Mail, Calendar etc
    "Microsoft.WindowsMaps",
    "Microsoft.WindowsSoundRecorder", 
    "Microsoft.WindowsStore",
    "Microsoft.ZuneMusic",
    "Microsoft.ZuneVideo"
))

I am using v1.1.2 of the script and using SCCM 1902 with CU 1, pushing Wind 10 - 1809. Build 17763.379 March, 2019 CU.

Is this a known issue?

Typhoon87 commented 4 years ago

So after much research it seems if you DISM in KB4512534 (OS Build 17763.720) to the 1809 WIM it adds this fix:

Addresses an issue that causes Deployment Image Servicing and Management (DISM) to intermittently stop responding while deprovisioning some preinstalled apps using the Microsoft System Center Configuration Manager (SCCM).

I think that this resolves the issue in that its a bug in Windows.