Q: How to manually remove residual non-default FOD feature languages? NOT easy because of Wrapper packages, especially when the base has been resetted. 1. Install 19041.1 amd64 and wow64 FOD package 2. Install 19041.1 amd64 and wow64 FOD language package if available + 3. Uninstall 19041.xxxx amd64 Wrapper package 4. Uninstall 19041.xxxx amd64 Wrapper language package if available + 5. Uninstall 19041.1 amd64 FOD package. Finally, reinstall FOD and default FOD language, and LCU. Done.
1. Install 19041.1 amd64 and wow64 FOD package 2. Install 19041.1 amd64 and wow64 Source FOD language package 3. Uninstall related FODs by Code: if exist temp\fod.txt del /f /q temp\fod.txt if exist %MT%\Windows\servicing\Packages\Microsoft-Windows-MediaPlayer-Package~*~%ARCH%~~%LVER%.mum echo Media.WindowsMediaPlayer~~~~0.0.12.0 >>temp\fod.txt if exist %MT%\Windows\servicing\Packages\Microsoft-Windows-MSPaint-FoD-Package~*~%ARCH%~~*.mum echo Microsoft.Windows.MSPaint~~~~0.0.1.0 >>temp\fod.txt if exist %MT%\Windows\servicing\Packages\Microsoft-Windows-Notepad-FoD-Package~*~%ARCH%~~*.mum echo Microsoft.Windows.Notepad~~~~0.0.1.0 >>temp\fod.txt if exist %MT%\Windows\servicing\Packages\Microsoft-Windows-PowerShell-ISE-FOD-Package~*~%ARCH%~~*.mum echo Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0 >>temp\fod.txt if exist %MT%\Windows\servicing\Packages\Microsoft-Windows-Printing-PMCPPC-FoD-Package~*~%ARCH%~~*.mum echo Print.Management.Console~~~~0.0.1.0 >>temp\fod.txt if exist %MT%\Windows\servicing\Packages\Microsoft-Windows-Printing-WFS-FoD-Package~*~%ARCH%~~*.mum echo Print.Fax.Scan~~~~0.0.1.0 >>temp\fod.txt if exist %MT%\Windows\servicing\Packages\Microsoft-Windows-StepsRecorder-Package~*~%ARCH%~~*.mum echo App.StepsRecorder~~~~0.0.1.0 >>temp\fod.txt if exist %MT%\Windows\servicing\Packages\Microsoft-Windows-WordPad-FoD-Package~*~%ARCH%~~*.mum echo Microsoft.Windows.WordPad~~~~0.0.1.0 >>temp\fod.txt for /f %%x in ('findstr /i . temp\fod.txt 2^>nul') do ( echo. echo ------------------------------------------------------------ echo Removing %%x echo ------------------------------------------------------------ dism /english /image:%MT% /Remove-Capability /CapabilityName:%%x ) 4. Reinstall a. FOD packages b. Target FOD language packages c. LCU if necessary e.g. [19044.1566 CoreCountrySpecific zh-CN to 19041.1 EnterpriseSN ja-JP] Code: ------------------------------------------------------------ Adding FOD ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-OneCore-ApplicationModel-Sync-Desktop-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-OneCore-DirectX-Database-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-FodMetadata-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Hello-Face-Migration-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Hello-Face-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~~11.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-QuickAssist-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-TabletPCMath-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-UserExperience-Desktop-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package OpenSSH-Client-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Adding zh-CN FOD languages ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 12 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 2 of 12 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 3 of 12 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 4 of 12 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~wow64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 5 of 12 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 6 of 12 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 7 of 12 - Adding package Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 8 of 12 - Adding package Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 9 of 12 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 10 of 12 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 11 of 12 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 12 of 12 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~zh-CN~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Media.WindowsMediaPlayer~~~~0.0.12.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Microsoft.Windows.MSPaint~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Microsoft.Windows.Notepad~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Print.Management.Console~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Print.Fax.Scan~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing App.StepsRecorder~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Microsoft.Windows.WordPad~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Now, it is all in ja-JP. [19041.1 EnterpriseSN ja-JP to 19044.1566 IoTEnterpriseS zh-TW] Code: ------------------------------------------------------------ Adding FOD ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-OneCore-ApplicationModel-Sync-Desktop-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-OneCore-DirectX-Database-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-FodMetadata-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Hello-Face-Migration-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Hello-Face-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~~11.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-QuickAssist-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-TabletPCMath-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-UserExperience-Desktop-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package OpenSSH-Client-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Adding ja-JP FOD languages ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 12 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~ja-JP~10.0.19041.1 [==========================100.0%==========================] Processing 2 of 12 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~ja-JP~10.0.19041.1 [==========================100.0%==========================] Processing 3 of 12 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~amd64~ja-JP~10.0.19041.1 [==========================100.0%==========================] Processing 4 of 12 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~wow64~ja-JP~10.0.19041.1 [==========================100.0%==========================] Processing 5 of 12 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~ja-JP~10.0.19041.1 [==========================100.0%==========================] Processing 6 of 12 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~ja-JP~10.0.19041.1 [==========================100.0%==========================] Processing 7 of 12 - Adding package Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~ja-JP~10.0.19041.1 [==========================100.0%==========================] Processing 8 of 12 - Adding package Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~ja-JP~10.0.19041.1 [==========================100.0%==========================] Processing 9 of 12 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~ja-JP~10.0.19041.1 [==========================100.0%==========================] Processing 10 of 12 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~ja-JP~10.0.19041.1 [==========================100.0%==========================] Processing 11 of 12 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~ja-JP~10.0.19041.1 [==========================100.0%==========================] Processing 12 of 12 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~ja-JP~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Media.WindowsMediaPlayer~~~~0.0.12.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Microsoft.Windows.MSPaint~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Microsoft.Windows.Notepad~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Print.Management.Console~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Print.Fax.Scan~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing App.StepsRecorder~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Microsoft.Windows.WordPad~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Now, it is all in zh-TW.
Yes. K & KN, actually KN is N. It is not EU member, so called KN. Long time no see. Where have you been?
I was working with another project. That's why I could not post messages. But I'm back. I need to reconstruct some K & KN ISOs in English and Turkish languages. It's so weird that Microsoft did not release any English K editions after Windows XP.
Strange, it works for me doing the same. The only difference is that I applied the new language first then removed the Korean language. After this the shortcuts are gone from the desktop and the Start Menu.
Q: How to detect and remove updates? e.g. CMGE_V2022-L.1345.iso [Servicing Stack] Package_for_ServicingStack_1371~31bf3856ad364e35~amd64~~19041.1371.1.0.mum Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.1220.1.0.mum Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.985.1.1.mum [Cumulative Update] Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1415.1.6.mum [21H2 Enablement] Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3.mum [DotNet 48 Rollup] Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4400.1.mum Among them, Servicing Stack, needs to replace "permanent" with "removable", or delete "permanence="permanent"" before it can be removed. Then the script will remove them by the build number from greater to smaller. And, the smallest 19041.985.1.1 will be removed along by LCU. One of my old CMGE scripts won't show 19041.985.1.1. But I forgot which one. Now, here is the best I can do: Code: if exist temp\update.txt del /f /q temp\update.txt if exist %MT%\Windows\servicing\Packages\Package_for_*.mum ( dir /b %MT%\Windows\servicing\Packages\Package_for_*.mum >>temp\update.txt for /f %%x in ('findstr /i . temp\update.txt 2^>nul') do (powershell -Command "(gc %MT%\Windows\servicing\Packages\%%x) -replace 'permanent', 'removable' | sc %MT%\Windows\servicing\Packages\%%x") powershell -Command "(gc temp\update.txt) -replace '.mum', '' | sc temp\update.txt" for /f %%x in ('findstr /i . temp\update.txt 2^>nul') do ( reg load HKLM\SOFTWARE1 %MT%\Windows\System32\config\SOFTWARE >nul reg add "HKLM\SOFTWARE1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%%x" /v Visibility /t REG_DWORD /d 1 /f >NUL 2>&1 reg delete "HKLM\SOFTWARE1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%%x\Owners" /f >NUL 2>&1 reg unload HKLM\SOFTWARE1 >nul echo. echo ------------------------------------------------------------ echo Removing %%x echo ------------------------------------------------------------ if exist %MT%\Windows\servicing\Packages\%%x.mum dism /english /image:%MT% /Remove-package /Packagename:%%x ) ) Code: ------------------------------------------------------------ Removing Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4400.1 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4400.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1415.1.6 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1415.1.6 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_ServicingStack_1371~31bf3856ad364e35~amd64~~19041.1371.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_ServicingStack_1371~31bf3856ad364e35~amd64~~19041.1371.1.0 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.1220.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.1220.1.0 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.985.1.1 ------------------------------------------------------------ Oh, the old one modify SSU mums before detect\remove updates. But I forgot how I made it. If we remove SSU firstly, the 21H2 Enablement package will fail to remove. How about? 1. Remove updates except SSU (the smallest SSU build will be removed along by LCU) 2. Remove the other two SSU Code: if exist %MT%\Windows\servicing\Packages\Package_for_*.mum ( if exist temp\update.txt del /f /q temp\update.txt dir /b %MT%\Windows\servicing\Packages\Package_for_*.mum >>temp\update.txt powershell -Command "(gc temp\update.txt) -replace '.mum', '' | sc temp\update.txt" for /f %%x in ('findstr /i /v "ServicingStack" temp\update.txt 2^>nul') do ( reg load HKLM\SOFTWARE1 %MT%\Windows\System32\config\SOFTWARE >nul reg add "HKLM\SOFTWARE1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%%x" /v Visibility /t REG_DWORD /d 1 /f >NUL 2>&1 reg delete "HKLM\SOFTWARE1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%%x\Owners" /f >NUL 2>&1 reg unload HKLM\SOFTWARE1 >nul echo. echo ------------------------------------------------------------ echo Removing %%x echo ------------------------------------------------------------ if exist %MT%\Windows\servicing\Packages\%%x.mum dism /english /image:%MT% /Remove-package /Packagename:%%x ) ) if exist %MT%\Windows\servicing\Packages\Package_for_ServicingStack*.mum ( if exist temp\update.txt del /f /q temp\update.txt dir /b %MT%\Windows\servicing\Packages\Package_for_ServicingStack*.mum >>temp\update.txt for /f %%x in ('findstr /i . temp\update.txt 2^>nul') do (powershell -Command "(gc %MT%\Windows\servicing\Packages\%%x) -replace 'permanent', 'removable' | sc %MT%\Windows\servicing\Packages\%%x") powershell -Command "(gc temp\update.txt) -replace '.mum', '' | sc temp\update.txt" for /f %%x in ('findstr /i . temp\update.txt 2^>nul') do ( reg load HKLM\SOFTWARE1 %MT%\Windows\System32\config\SOFTWARE >nul reg add "HKLM\SOFTWARE1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%%x" /v Visibility /t REG_DWORD /d 1 /f >NUL 2>&1 reg delete "HKLM\SOFTWARE1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%%x\Owners" /f >NUL 2>&1 reg unload HKLM\SOFTWARE1 >nul echo. echo ------------------------------------------------------------ echo Removing %%x echo ------------------------------------------------------------ if exist %MT%\Windows\servicing\Packages\%%x.mum dism /english /image:%MT% /Remove-package /Packagename:%%x ) ) Yes. Now it is looking comfortable. Code: ------------------------------------------------------------ Removing Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4400.1 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4400.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1415.1.6 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1415.1.6 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_ServicingStack_1371~31bf3856ad364e35~amd64~~19041.1371.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_ServicingStack_1371~31bf3856ad364e35~amd64~~19041.1371.1.0 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.1220.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.1220.1.0 [==========================100.0%==========================] The operation completed successfully. Q: How to combine the two scripts into one? If ... else ...? Gotcha! Code: if exist %MT%\Windows\servicing\Packages\Package_for_*.mum ( if exist temp\update.txt del /f /q temp\update.txt dir /b %MT%\Windows\servicing\Packages\Package_for_*.mum >>temp\update.txt for /f %%x in ('findstr /i . temp\update.txt 2^>nul') do ( powershell -Command "(gc %MT%\Windows\servicing\Packages\%%x) -replace 'permanent', 'removable' | sc %MT%\Windows\servicing\Packages\%%x" powershell -Command "(gc temp\update.txt) -replace '.mum', '' | sc temp\update.txt" ) for /f %%x in ('findstr /i . temp\update.txt 2^>nul') do ( if exist %MT%\Windows\servicing\Packages\%%x.mum ( reg load HKLM\SOFTWARE1 %MT%\Windows\System32\config\SOFTWARE >nul reg add "HKLM\SOFTWARE1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%%x" /v Visibility /t REG_DWORD /d 1 /f >NUL 2>&1 reg delete "HKLM\SOFTWARE1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%%x\Owners" /f >NUL 2>&1 reg unload HKLM\SOFTWARE1 >nul echo. echo ------------------------------------------------------------ echo Removing %%x echo ------------------------------------------------------------ dism /english /image:%MT% /Remove-package /Packagename:%%x ) ) ) Code: ------------------------------------------------------------ Removing Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4400.1 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4400.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1415.1.6 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1415.1.6 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_ServicingStack_1371~31bf3856ad364e35~amd64~~19041.1371.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_ServicingStack_1371~31bf3856ad364e35~amd64~~19041.1371.1.0 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.1220.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.1220.1.0 [==========================100.0%==========================] The operation completed successfully. I did it, my... way......................................
Converting 19044.1415 CMGE (EnterpriseG) zh-CN to 19044.1566 IoTEnterpriseS zh-TW amd64 based on #6771 Code: ============================================================================================================ Converting 19044.1415 EnterpriseG zh-CN to 19041.1 IoTEnterpriseS zh-TW amd64 ============================================================================================================ ------------------------------------------------------------ Resetting EnterpriseG base ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19044.1415 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Creating IoTEnterpriseS ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19044.1415 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4400.1 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4400.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1415.1.6 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1415.1.6 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_ServicingStack_1371~31bf3856ad364e35~amd64~~19041.1371.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_ServicingStack_1371~31bf3856ad364e35~amd64~~19041.1371.1.0 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.1220.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_ServicingStack~31bf3856ad364e35~amd64~~19041.1220.1.0 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Adding FOD ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Adding zh-CN FOD languages ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 12 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 2 of 12 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 3 of 12 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 4 of 12 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~wow64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 5 of 12 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 6 of 12 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 7 of 12 - Adding package Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 8 of 12 - Adding package Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 9 of 12 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 10 of 12 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 11 of 12 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~zh-CN~10.0.19041.1 [==========================100.0%==========================] Processing 12 of 12 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~zh-CN~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Media.WindowsMediaPlayer~~~~0.0.12.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Microsoft.Windows.MSPaint~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Microsoft.Windows.Notepad~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Microsoft.Windows.PowerShell.ISE~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Print.Management.Console~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Print.Fax.Scan~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing App.StepsRecorder~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Microsoft.Windows.WordPad~~~~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Language.Fonts.Hans~~~und-HANS~0.0.1.0 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing zh-CN language features ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Microsoft-Windows-LanguageFeatures-OCR-zh-cn-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Microsoft-Windows-LanguageFeatures-Speech-zh-cn-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Microsoft-Windows-LanguageFeatures-TextToSpeech-zh-cn-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Microsoft-Windows-LanguageFeatures-Basic-zh-cn-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Adding zh-TW language ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~zh-TW~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Adding zh-TW language features ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-InternationalFeatures-Taiwan-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-LanguageFeatures-Basic-zh-tw-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-LanguageFeatures-Fonts-Hant-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-LanguageFeatures-Handwriting-zh-tw-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-LanguageFeatures-OCR-zh-tw-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-LanguageFeatures-Speech-zh-hk-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-LanguageFeatures-Speech-zh-tw-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-LanguageFeatures-TextToSpeech-zh-hk-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-LanguageFeatures-TextToSpeech-zh-tw-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Adding FOD ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-OneCore-ApplicationModel-Sync-Desktop-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-OneCore-DirectX-Database-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-FodMetadata-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Hello-Face-Migration-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Hello-Face-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~~11.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-QuickAssist-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-TabletPCMath-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-UserExperience-Desktop-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package OpenSSH-Client-Package~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Adding zh-TW FOD languages ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 12 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~zh-TW~10.0.19041.1 [==========================100.0%==========================] Processing 2 of 12 - Adding package Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~zh-TW~10.0.19041.1 [==========================100.0%==========================] Processing 3 of 12 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~amd64~zh-TW~10.0.19041.1 [==========================100.0%==========================] Processing 4 of 12 - Adding package Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~wow64~zh-TW~10.0.19041.1 [==========================100.0%==========================] Processing 5 of 12 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~zh-TW~10.0.19041.1 [==========================100.0%==========================] Processing 6 of 12 - Adding package Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~zh-TW~10.0.19041.1 [==========================100.0%==========================] Processing 7 of 12 - Adding package Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~zh-TW~10.0.19041.1 [==========================100.0%==========================] Processing 8 of 12 - Adding package Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~zh-TW~10.0.19041.1 [==========================100.0%==========================] Processing 9 of 12 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~zh-TW~10.0.19041.1 [==========================100.0%==========================] Processing 10 of 12 - Adding package Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~zh-TW~10.0.19041.1 [==========================100.0%==========================] Processing 11 of 12 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~zh-TW~10.0.19041.1 [==========================100.0%==========================] Processing 12 of 12 - Adding package Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~zh-TW~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Adding Servicing Stack update ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Package_for_ServicingStack_1525~31bf3856ad364e35~amd64~~19041.1525.1.0 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Adding 21H2 Enablement ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Package_for_KB5003791~31bf3856ad364e35~amd64~~19041.1237.1.3 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Adding DotNetRollup ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Package_for_DotNetRollup~31bf3856ad364e35~amd64~~10.0.4488.1 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Adding RollupFix ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.1566.1.8 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Configuring settings ------------------------------------------------------------ ------------------------------------------------------------ Current Edition : IoTEnterpriseS (OEM) ------------------------------------------------------------ ------------------------------------------------------------ Resetting IoTEnterpriseS base ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19044.1566 [===== 10.0% ] [==========================100.0%==========================] The operation completed successfully. ============================================================================================================ 19044.1566 Windows 10 IoT Enterprise LTSC 2021 amd64 zh-TW has been successfully created ============================================================================================================ Conversion took 0:26:38.72 (1598.72s total) Press any key to continue . . . Where has Unmounting gone? Oh, I forgot that this is installed system Offline-Switch! 26 minutes. 100% success. No chance to fail and undo.
Hope this will 100% success too. Code: @Echo Off chcp 437 >Nul Setlocal EnableExtensions EnableDelayedExpansion Pushd "%~dp0" Set "MT=temp\mount" Set "_tmpNames=temp\temp01.txt" If not exist %MT% md %MT% Del /f /s /q "temp\*" Dism /logpath:temp\mounts.log /LogLevel:2 /scratchdir:temp /Mount-Image /ImageFile:install.wim /index:1 /MountDir:%MT% || exit /b 1 Set "_flPackages=%MT%\Windows\servicing\Packages" dir /s /b /o-d "!_flPackages!\Package_for_*.mum" > !_tmpNames! ::Replace "permanent" with "removable" string in ServicingStack package for /f %%x in ('findstr /i "ServicingStack" "!_tmpNames!"') do ( PowerShell -Nop -NonI -Exec Bypass -C "(gc %%x) -replace 'permanent', 'removable' | sc %%x") ) ::Add visibility and remove owners for all packages in temp01.txt reg load HKLM\SOFTWARE1 %MT%\Windows\System32\config\SOFTWARE >nul for /f "usebackq tokens=*" %%r in ("!_tmpNames!") do ( Call :setPackageReg %%r ) reg unload HKLM\SOFTWARE1 >nul ::Remove lcu and other packages except ServiceStack for /f "usebackq tokens=*" %%r in ("!_tmpNames!") do ( Echo %%r | Findstr /i "ServicingStack" >Nul 2>&1 && ( Echo. ) || ( Call :remPackage %%r ) ) ::Remove ServicesStack packages for /f %%x in ('findstr /i "ServicingStack" "!_tmpNames!"') do ( Call :remPackage %%x ) Echo. Echo Cleanup image... Dism /logpath:temp\cleanUp.log /LogLevel:2 /scratchdir:temp /quiet /image:%MT% /Cleanup-Image /StartComponentCleanup Dism /logpath:temp\cleanUp.log /LogLevel:2 /scratchdir:temp /image:%MT% /Cleanup-Image /StartComponentCleanup /Resetbase Echo Saving image... Dism /logpath:temp\commit.log /LogLevel:2 /scratchdir:temp /Unmount-Image /MountDir:%MT% /Commit Echo Done. EndLocal pause Exit :setPackageReg reg add "HKLM\SOFTWARE1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%~n1" /v "Visibility" /t REG_DWORD /d "1" /f >NUL 2>&1 reg delete "HKLM\SOFTWARE1\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages\%~n1\Owners" /f >NUL 2>&1 Exit /b :remPackage dism /english /logpath:temp\%~n1.log /LogLevel:2 /image:%MT% /Remove-package /Packagename:%~n1 Exit /b
Thank you so very much. But this won't work because of visibility and owners being not set. Code: ::Remove lcu and other packages except ServiceStack for /f "usebackq tokens=*" %%r in ("!_tmpNames!") do ( Echo %%r | Findstr /i "ServicingStack" >Nul 2>&1 && ( Echo. ) || ( Call :remPackage %%r ) ) Code: Processing 1 of 1 - Package_for_RollupFix: Permanent package cannot be uninstalled. Error: 0x800f0825 Echo %%r | Findstr /i /v "ServicingStack" >Nul 2>&1 && ( Echo. ) || ( Call :remPackage %%r ) ? This works, Code: ::Remove ServicesStack packages for /f %%x in ('findstr /i "ServicingStack" "!_tmpNames!"') do ( Call :remPackage %%x ) Code: Processing 1 of 1 - Removing package Package_for_ServicingStack_1371~31bf3856ad364e35~amd64~~19041.1371.1.0 [==========================100.0%==========================] The operation completed successfully. Maybe because I can not fully understand the usage.