From 29592ca61987201f39852297d8d24619b2fb977a Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Tue, 27 Dec 2022 16:09:26 +0100 Subject: [PATCH] added remove-apps again... --- 05_FinishImage.cmd | 1 + wim/apps-to-remove.csv | 37 +++++++++++++++++++++++++++++++++++++ wim/remove-apps.cmd | 19 +++++++++++++++++++ 3 files changed, 57 insertions(+) create mode 100644 wim/apps-to-remove.csv create mode 100644 wim/remove-apps.cmd diff --git a/05_FinishImage.cmd b/05_FinishImage.cmd index ca96948..9d5a761 100644 --- a/05_FinishImage.cmd +++ b/05_FinishImage.cmd @@ -21,6 +21,7 @@ rem start scripts for %%S in ( mount-image.cmd + remove-apps.cmd finish-image.cmd ) do ( diff --git a/wim/apps-to-remove.csv b/wim/apps-to-remove.csv new file mode 100644 index 0000000..51b2fcf --- /dev/null +++ b/wim/apps-to-remove.csv @@ -0,0 +1,37 @@ +549981C3F5F10_1.1911.21713.0_neutral_~_8wekyb3d8bbwe +BingWeather_4.25.20211.0_neutral_~_8wekyb3d8bbwe +DesktopAppInstaller_2019.125.2243.0_neutral_~_8wekyb3d8bbwe +GetHelp_10.1706.13331.0_neutral_~_8wekyb3d8bbwe +Getstarted_8.2.22942.0_neutral_~_8wekyb3d8bbwe +HEIFImageExtension_1.0.22742.0_x64__8wekyb3d8bbwe +Microsoft3DViewer_6.1908.2042.0_neutral_~_8wekyb3d8bbwe +MicrosoftEdge.Stable_84.0.522.52_neutral__8wekyb3d8bbwe +MicrosoftOfficeHub_18.1903.1152.0_neutral_~_8wekyb3d8bbwe +MicrosoftSolitaireCollection_4.4.8204.0_neutral_~_8wekyb3d8bbwe +MicrosoftStickyNotes_3.6.73.0_neutral_~_8wekyb3d8bbwe +MixedReality.Portal_2000.19081.1301.0_neutral_~_8wekyb3d8bbwe +MSPaint_2019.729.2301.0_neutral_~_8wekyb3d8bbwe +Office.OneNote_16001.12026.20112.0_neutral_~_8wekyb3d8bbwe +People_2019.305.632.0_neutral_~_8wekyb3d8bbwe +ScreenSketch_2019.904.1644.0_neutral_~_8wekyb3d8bbwe +SkypeApp_14.53.77.0_neutral_~_kzf8qxf38zg5c +VP9VideoExtensions_1.0.22681.0_x64__8wekyb3d8bbwe +Wallet_2.4.18324.0_neutral_~_8wekyb3d8bbwe +WebMediaExtensions_1.0.20875.0_neutral_~_8wekyb3d8bbwe +WebpImageExtension_1.0.22753.0_x64__8wekyb3d8bbwe +Windows.Photos_2019.19071.12548.0_neutral_~_8wekyb3d8bbwe +WindowsAlarms_2019.807.41.0_neutral_~_8wekyb3d8bbwe +WindowsCamera_2018.826.98.0_neutral_~_8wekyb3d8bbwe +windowscommunicationsapps_16005.11629.20316.0_neutral_~_8wekyb3d8bbwe +WindowsFeedbackHub_2019.1111.2029.0_neutral_~_8wekyb3d8bbwe +WindowsMaps_2019.716.2316.0_neutral_~_8wekyb3d8bbwe +WindowsSoundRecorder_2019.716.2313.0_neutral_~_8wekyb3d8bbwe +Xbox.TCUI_1.23.28002.0_neutral_~_8wekyb3d8bbwe +XboxApp_48.49.31001.0_neutral_~_8wekyb3d8bbwe +XboxGameOverlay_1.46.11001.0_neutral_~_8wekyb3d8bbwe +XboxGamingOverlay_2.34.28001.0_neutral_~_8wekyb3d8bbwe +XboxIdentityProvider_12.50.6001.0_neutral_~_8wekyb3d8bbwe +XboxSpeechToTextOverlay_1.17.29001.0_neutral_~_8wekyb3d8bbwe +YourPhone_2019.430.2026.0_neutral_~_8wekyb3d8bbwe +ZuneMusic_2019.19071.19011.0_neutral_~_8wekyb3d8bbwe +ZuneVideo_2019.19071.19011.0_neutral_~_8wekyb3d8bbwe diff --git a/wim/remove-apps.cmd b/wim/remove-apps.cmd new file mode 100644 index 0000000..224a465 --- /dev/null +++ b/wim/remove-apps.cmd @@ -0,0 +1,19 @@ +@echo off +set IMAGE=c:\TEMP\IMAGE + +echo exporting APPS list BEFORE doing any changes ... +dism /Image:%IMAGE% /Get-ProvisionedAppxPackages 1>Apps-BEFORE.txt + +FOR /F %%P in (apps-to-remove.csv) do ( + + echo removing APPX package [ Microsoft.%%P ] + dism /Image:%IMAGE% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.%%P + +) + +echo exporting remaining APPS list ... +dism /Image:%IMAGE% /Get-ProvisionedAppxPackages 1>Apps-AFTER.txt + +rem showing packages ... +dir Apps*.txt +