diff --git a/wim/.gitignore b/wim/.gitignore index f98b103..7c4c32d 100644 --- a/wim/.gitignore +++ b/wim/.gitignore @@ -3,4 +3,5 @@ *.iso *.exe *.dll -Packages*.* +Packages*.txt +Apps*.txt diff --git a/wim/remove-apps.cmd b/wim/remove-apps.cmd new file mode 100644 index 0000000..90f16f6 --- /dev/null +++ b/wim/remove-apps.cmd @@ -0,0 +1,60 @@ +@echo off +set MNT=c:\TEMP\WIM + +echo exporting APPS list BEFORE doing any changes ... +dism /Image:%MNT% /Get-ProvisionedAppxPackages 1>Apps-BEFORE.txt + +rem keep the store ... +rem dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.StorePurchaseApp_11811.1001.1813.0_neutral_~_8wekyb3d8bbwe + +@echo on + +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.549981C3F5F10_1.1911.21713.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.BingWeather_4.25.20211.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.DesktopAppInstaller_2019.125.2243.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.GetHelp_10.1706.13331.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Getstarted_8.2.22942.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.HEIFImageExtension_1.0.22742.0_x64__8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Microsoft3DViewer_6.1908.2042.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.MicrosoftEdge.Stable_84.0.522.52_neutral__8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.MicrosoftOfficeHub_18.1903.1152.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.MicrosoftSolitaireCollection_4.4.8204.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.MicrosoftStickyNotes_3.6.73.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.MixedReality.Portal_2000.19081.1301.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.MSPaint_2019.729.2301.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Office.OneNote_16001.12026.20112.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.People_2019.305.632.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.ScreenSketch_2019.904.1644.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.SkypeApp_14.53.77.0_neutral_~_kzf8qxf38zg5c +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.VCLibs.140.00_14.0.27323.0_x64__8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.VP9VideoExtensions_1.0.22681.0_x64__8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Wallet_2.4.18324.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WebMediaExtensions_1.0.20875.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WebpImageExtension_1.0.22753.0_x64__8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Windows.Photos_2019.19071.12548.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsAlarms_2019.807.41.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsCalculator_2020.1906.55.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsCamera_2018.826.98.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:microsoft.windowscommunicationsapps_16005.11629.20316.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsFeedbackHub_2019.1111.2029.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsMaps_2019.716.2316.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsSoundRecorder_2019.716.2313.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.WindowsStore_11910.1002.513.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.Xbox.TCUI_1.23.28002.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.XboxApp_48.49.31001.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.XboxGameOverlay_1.46.11001.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.XboxGamingOverlay_2.34.28001.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.XboxIdentityProvider_12.50.6001.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.XboxSpeechToTextOverlay_1.17.29001.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.YourPhone_2019.430.2026.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.ZuneMusic_2019.19071.19011.0_neutral_~_8wekyb3d8bbwe +dism /Image:%MNT% /Remove-ProvisionedAppxPackage /PackageName:Microsoft.ZuneVideo_2019.19071.19011.0_neutral_~_8wekyb3d8bbwe + +@echo off + +echo exporting remaining APPS list ... +dism /Image:%MNT% /Get-ProvisionedAppxPackages 1>Apps-AFTER.txt + +rem showing packages ... +dir Apps*.txt + diff --git a/wim/remove-components.cmd b/wim/remove-components.cmd deleted file mode 100644 index 2a5c645..0000000 --- a/wim/remove-components.cmd +++ /dev/null @@ -1,197 +0,0 @@ -set MNT=c:\TEMP\WIM - -echo exporting PACKAGE list BEFORE doing any changes ... -install_wim_tweak /p %MNT% /l -move /Y Packages.txt Packages-BEFORE.txt - -install_wim_tweak.exe /p %MNT% /c "Adobe-Flash" /r /n -install_wim_tweak.exe /p %MNT% /c "Containers-ApplicationGuard" /r /n -install_wim_tweak.exe /p %MNT% /c "Containers-Client" /r /n -install_wim_tweak.exe /p %MNT% /c "Containers-DisposableClientVM" /r /n -install_wim_tweak.exe /p %MNT% /c "Containers-Guest-Gated" /r /n -install_wim_tweak.exe /p %MNT% /c "Containers-OptionalFeature" /r /n -install_wim_tweak.exe /p %MNT% /c "Containers-Server" /r /n -install_wim_tweak.exe /p %MNT% /c "DeviceAccess" /r /n -install_wim_tweak.exe /p %MNT% /c "HyperV" /r /n -install_wim_tweak.exe /p %MNT% /c "LanguageFeatures-WordBreaking" /r /n -install_wim_tweak.exe /p %MNT% /c "Media-FaceAnalysis" /r /n -install_wim_tweak.exe /p %MNT% /c "Media-Ocr" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Composable-PlatformExtension" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Hyper-V" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-IoTUAP-ShellExt-Tools" /r /n -rem install_wim_tweak.exe /p %MNT% /c "Microsoft-Media-Foundation" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Mobile" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-OneCore" /r /n -install_wim_tweak.exe /p %MNT% /c "microsoft-onecore-applicationmodel-sync-desktop-fod-package-Wrapper" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Onecore-SPP-VirtualDevice-Package" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-PPIProjection" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-UtilityVM" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-3DAudio" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ApiSetSchemaExtension-HyperV" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppCompat" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppManagement" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-AppServerClient" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Backup" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Basic-Http-Minio" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BioEnrollment" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BITS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Branding-Enterprise" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Browser" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-BusinessScanning" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Casting" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-AssignedAccess" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-EmbeddedExp" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-Optional-Features" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Client-ShellLauncher" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Common-Modem" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-COM-MSMQ" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Compression" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ContactSupport" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ContentDeliveryManager" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-CoreSystem-DebugTransports" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Cortana" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DataCenterBridging" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DeviceSync" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-DirectoryServices" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-EnterpriseClientSync" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-FodMetadata" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Geolocation" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Hello-Face" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Help" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HVSI-Components" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HyperV-OptionalFeature-HypervisorPlatform" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-HyperV-OptionalFeature-VirtualMachinePlatform" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Identity-Foundation" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-IIS-WebServer" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-International" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-InternetExplorer" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Internet" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Killbits" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-LanguageEnablingComponents" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-LanguageFeatures" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Legacy" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Links" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Lxss" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Management-SecureAssessment" /r /n -rem install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Media-Format" /r /n -rem install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MediaPlayback-OC" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MediaPlayer" /r /n -rem install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Media-Streaming" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Migration" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MiracastView" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobileBroadband" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobileCore" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MobilePC" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MRT10" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MSMQ" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-MultiPoint-Connector" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Network-Connectivity-Assistant" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-NetworkDiagnostics" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Network-QoS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-NFS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Not-Supported-On-LTSB" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OfflineFiles" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OneCore-Containers" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-OneDrive" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ParentalControls" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PAW-Feature" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PeerDist" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PeerToPeer" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PerformanceCounters" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-PhotoBasic" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Portable-Devices" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Presentation" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-InternetPrinting-Client" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-LocalPrinting-Enterprise" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-PMCPPC-FoD-Package" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-PremiumTools" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-PrintToPDFServices" /r /n -install_wim_tweak.exe /p %MNT% /c "microsoft-windows-printing-wfs-fod-package-Wrapper" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-WFS-FoD-Package" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Printing-XPSServices" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Provisioning" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Proximity" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-QuickAssist" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RDC" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RemoteAssistance" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RemoteDesktop" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RemoteFX" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-RetailDemo" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Search2" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SearchEngine" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SenseClient" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Serial" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-ShareMedia" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Shell-HomeGroup" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Shell-SettingSync" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Skype" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SMB1Client-D" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SMB1Deprecation-Group" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SMB1" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SMB1Server-D-Opt" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SmbDirect-Opt" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SmbDirect" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SnippingTool" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SNMP" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-StepsRecorder-Package" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-StorageService" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Store" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-SystemRestore" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TabletPC" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TabletPCMath" /r /n -install_wim_tweak.exe /p %MNT% /c "microsoft-windows-tabletpcmath-package-Wrapper" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TabShellExperience" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Telnet-Client" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Telnet" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TerminalServices" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TextPrediction-Dictionaries" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TextPrediction" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TFTP-Client" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TroubleShooting" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-TS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-UpdateTargeting-ClientOS" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-UserExperience" /r /n -install_wim_tweak.exe /p %MNT% /c "microsoft-windows-userexperience-desktop-package-Wrapper" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Virtualization-RemoteFX-User-Mode-Transport" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Virtualization" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-VirtualPC" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-VirtualXP" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WebcamExperience" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WindowsFoundation-LanguagePack" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WindowsMediaPlayer" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WindowsMediaPlayer-Troubleshooters-Package" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WinOcr" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WinRT" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WinSATMediaFiles" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WMIPerf" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WordBreaking" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WordPad-FoD" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WorkplaceJoin" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WPD-LegacyWmdmFeature" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-WPD-UltimatePortableDeviceFeature-Feature" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Windows-Xps" /r /n -install_wim_tweak.exe /p %MNT% /c "Microsoft-Xbox" /r /n -install_wim_tweak.exe /p %MNT% /c "MSMQ-Driver-Package" /r /n -rem install_wim_tweak.exe /p %MNT% /c "Multimedia-MFCore" /r /n -rem install_wim_tweak.exe /p %MNT% /c "Multimedia-RestrictedCodecsCore" /r /n -rem install_wim_tweak.exe /p %MNT% /c "Multimedia-RestrictedCodecsDolby" /r /n -install_wim_tweak.exe /p %MNT% /c "MultiPoint" /r /n -install_wim_tweak.exe /p %MNT% /c "Networking-MPSSVC-Rules-EnterpriseEdition-Package" /r /n -install_wim_tweak.exe /p %MNT% /c "OpenSSH-Client-Package" /r /n -install_wim_tweak.exe /p %MNT% /c "openssh-client-package-Wrapper" /r /n -install_wim_tweak.exe /p %MNT% /c "RemoteDesktopServices" /r /n -install_wim_tweak.exe /p %MNT% /c "Sensors-Universal" /r /n -install_wim_tweak.exe /p %MNT% /c "Server-Help" /r /n -install_wim_tweak.exe /p %MNT% /c "Windows-Defender" /r /n -install_wim_tweak.exe /p %MNT% /c "WindowsSearchEngineSKU-Group" /r /n - -echo CLEANUP ... -del /F SOFTWAREBKP 1>nul 2>nul - -echo exporting remaining PACKAGE names AFTER removing packages ... -install_wim_tweak /p %MNT% /l -move /Y Packages.txt Packages-AFTER.txt - -rem showing packages ... -dir Packages*.txt - diff --git a/wim/remove-packages.cmd b/wim/remove-packages.cmd new file mode 100644 index 0000000..5792c70 --- /dev/null +++ b/wim/remove-packages.cmd @@ -0,0 +1,34 @@ +@echo off +set MNT=c:\TEMP\WIM +set CHECKFILE=%MNT%\Windows\SysWOW64\mf.dll + +echo exporting PACKAGE list BEFORE doing any changes ... +install_wim_tweak /p %MNT% /l +move /Y Packages.txt Packages-BEFORE.txt + +rem MAIN loop ... +for %%P in ( +Adobe-Flash Containers-ApplicationGuard Containers-Client Containers-DisposableClientVM Containers-Guest-Gated Containers-OptionalFeature Containers-Server DeviceAccess HyperV LanguageFeatures-WordBreaking Media-FaceAnalysis Media-Ocr Microsoft-Composable-PlatformExtension Microsoft-Hyper-V Microsoft-IoTUAP-ShellExt-Tools Microsoft-Mobile Microsoft-PPIProjection Microsoft-UtilityVM Microsoft-Windows-3DAudio Microsoft-Windows-ApiSetSchemaExtension-HyperV Microsoft-Windows-AppCompat Microsoft-Windows-AppManagement Microsoft-Windows-AppServerClient Microsoft-Windows-Backup Microsoft-Windows-Basic-Http-Minio Microsoft-Windows-BioEnrollment Microsoft-Windows-BITS Microsoft-Windows-Branding-Enterprise Microsoft-Windows-Browser Microsoft-Windows-BusinessScanning Microsoft-Windows-Casting Microsoft-Windows-Client-AssignedAccess Microsoft-Windows-Client-EmbeddedExp Microsoft-Windows-Client-Optional-Features Microsoft-Windows-Client-ShellLauncher Microsoft-Windows-Common-Modem Microsoft-Windows-COM-MSMQ Microsoft-Windows-Compression Microsoft-Windows-ContactSupport Microsoft-Windows-ContentDeliveryManager Microsoft-Windows-CoreSystem-DebugTransports Microsoft-Windows-Cortana Microsoft-Windows-DataCenterBridging Microsoft-Windows-DeviceSync Microsoft-Windows-DirectoryServices Microsoft-Windows-EnterpriseClientSync Microsoft-Windows-FodMetadata Microsoft-Windows-Geolocation Microsoft-Windows-Hello-Face Microsoft-Windows-Help Microsoft-Windows-HVSI-Components Microsoft-Windows-HyperV-OptionalFeature-HypervisorPlatform Microsoft-Windows-HyperV-OptionalFeature-VirtualMachinePlatform Microsoft-Windows-Identity-Foundation Microsoft-Windows-IIS-WebServer Microsoft-Windows-International Microsoft-Windows-InternetExplorer Microsoft-Windows-Internet Microsoft-Windows-Killbits Microsoft-Windows-LanguageEnablingComponents Microsoft-Windows-LanguageFeatures Microsoft-Windows-Legacy Microsoft-Windows-Links Microsoft-Windows-Lxss Microsoft-Windows-Management-SecureAssessment Microsoft-Windows-MediaPlayer Microsoft-Windows-Migration Microsoft-Windows-MiracastView Microsoft-Windows-MobileBroadband Microsoft-Windows-MobileCore Microsoft-Windows-MobilePC Microsoft-Windows-MRT10 Microsoft-Windows-MSMQ Microsoft-Windows-MultiPoint-Connector Microsoft-Windows-Network-Connectivity-Assistant Microsoft-Windows-NetworkDiagnostics Microsoft-Windows-Network-QoS Microsoft-Windows-NFS Microsoft-Windows-Not-Supported-On-LTSB Microsoft-Windows-OfflineFiles Microsoft-Windows-OneCore-Containers Microsoft-Windows-OneDrive Microsoft-Windows-ParentalControls Microsoft-Windows-PAW-Feature Microsoft-Windows-PeerDist Microsoft-Windows-PeerToPeer Microsoft-Windows-PerformanceCounters Microsoft-Windows-PhotoBasic Microsoft-Windows-Portable-Devices Microsoft-Windows-Presentation Microsoft-Windows-Printing-InternetPrinting-Client Microsoft-Windows-Printing-LocalPrinting-Enterprise Microsoft-Windows-Printing-PMCPPC-FoD-Package Microsoft-Windows-Printing-PremiumTools Microsoft-Windows-Printing-PrintToPDFServices microsoft-windows-printing-wfs-fod-package-Wrapper Microsoft-Windows-Printing-WFS-FoD-Package Microsoft-Windows-Printing-XPSServices Microsoft-Windows-Provisioning Microsoft-Windows-Proximity Microsoft-Windows-QuickAssist Microsoft-Windows-RDC Microsoft-Windows-RemoteAssistance Microsoft-Windows-RemoteDesktop Microsoft-Windows-RemoteFX Microsoft-Windows-RetailDemo Microsoft-Windows-Search2 Microsoft-Windows-SearchEngine Microsoft-Windows-SenseClient Microsoft-Windows-Serial Microsoft-Windows-ShareMedia Microsoft-Windows-Shell-HomeGroup Microsoft-Windows-Shell-SettingSync Microsoft-Windows-Skype Microsoft-Windows-SMB1Client-D Microsoft-Windows-SMB1Deprecation-Group Microsoft-Windows-SMB1 Microsoft-Windows-SMB1Server-D-Opt Microsoft-Windows-SmbDirect-Opt Microsoft-Windows-SmbDirect Microsoft-Windows-SnippingTool Microsoft-Windows-SNMP Microsoft-Windows-StepsRecorder-Package Microsoft-Windows-StorageService Microsoft-Windows-Store Microsoft-Windows-SystemRestore Microsoft-Windows-TabletPC Microsoft-Windows-TabletPCMath microsoft-windows-tabletpcmath-package-Wrapper Microsoft-Windows-TabShellExperience Microsoft-Windows-Telnet-Client Microsoft-Windows-Telnet Microsoft-Windows-TerminalServices Microsoft-Windows-TextPrediction-Dictionaries Microsoft-Windows-TextPrediction Microsoft-Windows-TFTP-Client Microsoft-Windows-TroubleShooting Microsoft-Windows-TS Microsoft-Windows-UpdateTargeting-ClientOS Microsoft-Windows-UserExperience microsoft-windows-userexperience-desktop-package-Wrapper Microsoft-Windows-Virtualization-RemoteFX-User-Mode-Transport Microsoft-Windows-Virtualization Microsoft-Windows-VirtualPC Microsoft-Windows-VirtualXP Microsoft-Windows-WebcamExperience Microsoft-Windows-WindowsFoundation-LanguagePack Microsoft-Windows-WindowsMediaPlayer Microsoft-Windows-WindowsMediaPlayer-Troubleshooters-Package Microsoft-Windows-WinOcr Microsoft-Windows-WinRT Microsoft-Windows-WinSATMediaFiles Microsoft-Windows-WMIPerf Microsoft-Windows-WordBreaking Microsoft-Windows-WordPad-FoD Microsoft-Windows-WorkplaceJoin Microsoft-Windows-WPD-LegacyWmdmFeature Microsoft-Windows-WPD-UltimatePortableDeviceFeature-Feature Microsoft-Windows-Xps Microsoft-Xbox MSMQ-Driver-Package MultiPoint Networking-MPSSVC-Rules-EnterpriseEdition-Package OpenSSH-Client-Package openssh-client-package-Wrapper RemoteDesktopServices Sensors-Universal Server-Help Windows-Defender WindowsSearchEngineSKU-Group +) do ( + + @echo on + install_wim_tweak.exe /p %MNT% /c "%%P" /r /n + @echo off + + if NOT EXIST %CHECKFILE% ( + echo ERROR: File %CHECKFILE% was deleted + exit /b + ) + +) + +echo CLEANUP ... +del /F SOFTWAREBKP 1>nul 2>nul + +echo exporting remaining PACKAGES list ... +install_wim_tweak /p %MNT% /l +move /Y Packages.txt Packages-AFTER.txt + +rem showing packages ... +dir Packages*.txt +