yes! you can do like that! (apply unattend 1.xml (remove-install) -> add LP -> add Package_for_RollupFix-Package-amd64-19041.21.1.1.cab -> set-edition...). Package_for_RollupFix-Package-amd64-19041.21.1.1 will be gone with update & /cleanup-image /resetbase
That one really screwed me up and caused me to waste a lot of time. Save yourself the trouble. I don't think it was intended for the 2021 LTSC and I didn't know that when I downloaded it.
I used this method which also includes and enables Windows-Defender-Default-Definitions, but only 3 XML files. Why 4 XML files in your case?
It's not my xml. I was asking ace2 why he created an additional file when, if I'm not mistaken, 3 files do the same thing.
created 4.xml to keep Windows-Defender-AM-Default-Definitions-Package installed when uninstalling Microsoft-Windows-ProfessionalEdition
But the end result using the 3 file method is the same right? I still see Windows-Defender-Default-Definitions | Enabled from /get-features
Yes i know, but these 3 xml were not made until i made the fix for Windows-Defender-Default-Definitions with 4.xml. when using the 3 new xml method Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.21.1.1 will stay install until you update
Things are getting clearer now. When I followed huynhlam2's instructions, there was a dism step to remove Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.21.1.1 after applying 3.xml, So I guess everything ends up the same.
Thanks to this thread and many of the participants, I was able to create a .1 Windows 10 Enterprise LTSC 2021. For anyone interested, here's my log constructing the 2021 LTSC and additional queries. Only time will tell if this wim will cause any problems up the road. I did not remove any AppXProvisionedPackages, so I'm not sure if I still need to do anything to get it near identical to the .1288 LTSC 2021. Spoiler: Create 19041.1 2021 LTSC Code: https://forums.mydigitallife.net/threads/windows-editions-reconstruction-project.80939/page- 276#post-1706622 (huynhlam2 instructions) 277#post-1707103 (results) 278#post-1707161 (ace-spoilers) 280#post-1707689 (1st xml updates) 280#post-1707709 (2nd xml updates) 280#post-1707742 (remove ProvisionedAppxPackages) 281#post-1708057 (spanishfly instructions) 283#post-1708613 (xml options) 284#post-1708900 (MSMG reply - using that) ************************* * 1. Mount install.wim: * ************************* c:\Work>dism /mount-wim /wimfile:install.wim /mountdir:mount /index:1 Deployment Image Servicing and Management tool Version: 10.0.14393.4169 Mounting image [==========================100.0%==========================] The operation completed successfully. ************************************** * 2. Remove-Pro-Install-EnterpriseS: * ************************************** c:\Work>dism /image:mount /apply-unattend:my1.xml Deployment Image Servicing and Management tool Version: 10.0.14393.4169 Image Version: 10.0.19041.1 Removing package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.19041.1 Removing package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. **************************** * 3. Install-LanguagePack: * **************************** c:\Work>dism /image:mount /add-package /packagepath:Microsoft-Windows-Client-LanguagePack-Package_en-us~31bf3856ad364e35~amd64~en-us~.ESD Deployment Image Servicing and Management tool Version: 10.0.14393.4169 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. ******************************************************* * 4. Install-EditionSpecific-EnterpriseS:(19041.1149) * ******************************************************* c:\Work>dism /image:mount /add-package /packagepath:Package_for_RollupFix-Package-amd64-19041.21.1.1.cab Deployment Image Servicing and Management tool Version: 10.0.14393.4169 Image Version: 10.0.19041.1 Processing 1 of 1 - Adding package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.21.1.1 [==========================100.0%==========================] The operation completed successfully. c:\Work>dism /image:mount /apply-unattend:my2.xml Deployment Image Servicing and Management tool Version: 10.0.14393.4169 Image Version: 10.0.19041.1 Removing package Microsoft-Windows-EnterpriseSEdition~31bf3856ad364e35~amd64~~10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. c:\Work>dism /image:mount /apply-unattend:my3.xml Deployment Image Servicing and Management tool Version: 10.0.14393.4169 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. c:\Work>dism /image:mount /remove-package /packagename:Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.21.1.1 Deployment Image Servicing and Management tool Version: 10.0.14393.4169 Image Version: 10.0.19041.1 Processing 1 of 1 - Removing package Package_for_RollupFix~31bf3856ad364e35~amd64~~19041.21.1.1 [==========================100.0%==========================] The operation completed successfully. ******************* * 5. Set-Edition: * ******************* c:\Work>del mount\windows\*.xml c:\Work>dism /image:mount /set-edition:EnterpriseS /Channel=Volume Deployment Image Servicing and Management tool Version: 10.0.14393.4169 Image Version: 10.0.19041.1 Starting to update components... Starting to install product key... Finished installing product key. Starting to apply edition-specific settings... Finished applying edition-specific settings. The operation completed successfully. ********************** * 6. Cleanup & Save: * ********************** c:\Work>dism /image:mount /cleanup-image /startcomponentcleanup /resetbase Deployment Image Servicing and Management tool Version: 10.0.14393.4169 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. c:\Work>dism /unmount-wim /mountdir:mount /commit Deployment Image Servicing and Management tool Version: 10.0.14393.4169 Image File : c:\Work\install.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. *************************************** * 7. Set-Image-Properties & Optimize: * *************************************** c:\Work>wimlib-imagex.exe optimize install.wim "install.wim" original size: 3445236 KiB Using LZX compression with 4 threads Archiving file data: 7465 MiB of 7465 MiB (100%) done "install.wim" optimized size: 3341055 KiB Space saved: 104181 KiB c:\Work>wimlib-imagex.exe info install.wim 1 --image-property NAME="" --image-pr operty DESCRIPTION="" --image-property FLAGS="" --image-property DISPLAYNAME="" --image-property DISPLAYDESCRIPTION="" Setting the NAME property of image 1 to "". Setting the DESCRIPTION property of image 1 to "". Setting the FLAGS property of image 1 to "". Setting the DISPLAYNAME property of image 1 to "". Setting the DISPLAYDESCRIPTION property of image 1 to "". c:\Work>wimlib-imagex.exe info install.wim 1 --image-property NAME="Windows 10 E nterprise LTSC 2021" --image-property DESCRIPTION="Windows 10 Enterprise LTSC 20 21" --image-property FLAGS="EnterpriseS" --image-property DISPLAYNAME="Windows 1 0 Enterprise LTSC 2021" --image-property DISPLAYDESCRIPTION="Windows 10 Enterpri se LTSC 2021" Setting the NAME property of image 1 to "Windows 10 Enterprise LTSC 2021". Setting the DESCRIPTION property of image 1 to "Windows 10 Enterprise LTSC 2021" . Setting the FLAGS property of image 1 to "EnterpriseS". Setting the DISPLAYNAME property of image 1 to "Windows 10 Enterprise LTSC 2021" . Setting the DISPLAYDESCRIPTION property of image 1 to "Windows 10 Enterprise LTS C 2021". *************************************** * 8. Get infos from the created image * *************************************** c:\Work>wimlib-imagex.exe info install.wim 1 Information for Image 1 ----------------------- Index: 1 Name: Windows 10 Enterprise LTSC 2021 Description: Windows 10 Enterprise LTSC 2021 Display Name: Windows 10 Enterprise LTSC 2021 Display Description: Windows 10 Enterprise LTSC 2021 Directory Count: 18104 File Count: 83233 Total Bytes: 14163083736 Hard Link Bytes: 5774078629 Creation Time: Sat Dec 07 11:20:48 2019 UTC Last Modification Time: Sat Nov 27 11:28:08 2021 UTC Architecture: x86_64 Product Name: Microsoft« Windows« Operating System Edition ID: EnterpriseS Installation Type: Client Product Type: WinNT Product Suite: Terminal Server Languages: en-US Default Language: en-US System Root: WINDOWS Major Version: 10 Minor Version: 0 Build: 19041 Service Pack Build: 1 Service Pack Level: 0 Flags: EnterpriseS WIMBoot compatible: no c:\Work>dism /mount-wim /wimfile:install.wim /mountdir:mount /index:1 c:\Work>dism /image:mount /get-features /format:table | find "Enable" Printing-PrintToPDFServices-Features | Enabled Windows-Defender-Default-Definitions | Enabled Printing-XPSServices-Features | Enabled SearchEngine-Client-Package | Enabled MSRDC-Infrastructure | Enabled WorkFolders-Client | Enabled Printing-Foundation-Features | Enabled Printing-Foundation-InternetPrinting-Client | Enabled MicrosoftWindowsPowerShellV2Root | Enabled MicrosoftWindowsPowerShellV2 | Enabled NetFx4-AdvSrvs | Enabled WCF-Services45 | Enabled WCF-TCP-PortSharing45 | Enabled MediaPlayback | Enabled WindowsMediaPlayer | Enabled SmbDirect | Enabled Internet-Explorer-Optional-amd64 | Enabled Create Packages.txt c:\Work>dism.exe /image:mount /Get-Packages /Format:Table /English /LogLevel:2 /LogPath:"%~dp0DISM.log" >Packages.txt -------------------------------------------------------------------------------------------------- | --------- | ------------- | ---------------- Package Identity | State | Release Type | Install Time -------------------------------------------------------------------------------------------------- | --------- | ------------- | ---------------- Microsoft-OneCore-ApplicationModel-Sync-Desktop-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-OneCore-DirectX-Database-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:53 Microsoft-Windows-Client-LanguagePack-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1 | Installed | Language Pack | 2019-12-07 09:50 Microsoft-Windows-FodMetadata-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | Feature Pack | 2019-12-07 09:50 Microsoft-Windows-Foundation-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | Foundation | 2019-12-07 09:18 Microsoft-Windows-Hello-Face-Migration-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:50 Microsoft-Windows-Hello-Face-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:50 Microsoft-Windows-InternetExplorer-Optional-Package~31bf3856ad364e35~amd64~~11.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:51 Microsoft-Windows-LanguageFeatures-Basic-en-us-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-Windows-LanguageFeatures-Handwriting-en-us-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-Windows-LanguageFeatures-OCR-en-us-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-Windows-LanguageFeatures-Speech-en-us-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-Windows-LanguageFeatures-TextToSpeech-en-us-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-Windows-MediaPlayer-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:51 Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~en-US~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-Windows-MSPaint-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~wow64~en-US~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-Windows-Notepad-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:52 Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:53 Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:53 Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~en-US~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:53 Microsoft-Windows-PowerShell-ISE-FOD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:53 Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:54 Microsoft-Windows-Printing-PMCPPC-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:54 Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:51 Microsoft-Windows-Printing-WFS-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:51 Microsoft-Windows-QuickAssist-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:51 Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:53 Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:53 Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~en-US~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:53 Microsoft-Windows-StepsRecorder-Package~31bf3856ad364e35~wow64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:53 Microsoft-Windows-TabletPCMath-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:50 Microsoft-Windows-UserExperience-Desktop-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:51 Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:53 Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:53 Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~en-US~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:53 Microsoft-Windows-WordPad-FoD-Package~31bf3856ad364e35~wow64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:53 OpenSSH-Client-Package~31bf3856ad364e35~amd64~~10.0.19041.1 | Installed | OnDemand Pack | 2019-12-07 09:51 Create ProvisionedAppxPackage.txt c:\Work>for /f "tokens=2 delims=: " %i in ('dism /scratchdir:temp /image:mount /Get-ProvisionedAppxPackages ^| find /I "PackageName"') do echo %i >>ProvisionedAppxPackage.txt c:\Work>Powershell -Command "Get-AppXProvisionedPackage -Path mount | Format-Table DisplayName, PackageName DisplayName PackageName ----------- ----------- Microsoft.549981C3F5F10 Microsoft.549981C3F5F10_1.1911.21713.... Microsoft.BingWeather Microsoft.BingWeather_4.25.20211.0_ne... Microsoft.DesktopAppInstaller Microsoft.DesktopAppInstaller_2019.12... Microsoft.GetHelp Microsoft.GetHelp_10.1706.13331.0_neu... Microsoft.Getstarted Microsoft.Getstarted_8.2.22942.0_neut... Microsoft.HEIFImageExtension Microsoft.HEIFImageExtension_1.0.2274... Microsoft.Microsoft3DViewer Microsoft.Microsoft3DViewer_6.1908.20... Microsoft.MicrosoftOfficeHub Microsoft.MicrosoftOfficeHub_18.1903.... Microsoft.MicrosoftSolitaireCollection Microsoft.MicrosoftSolitaireCollectio... Microsoft.MicrosoftStickyNotes Microsoft.MicrosoftStickyNotes_3.6.73... Microsoft.MixedReality.Portal Microsoft.MixedReality.Portal_2000.19... Microsoft.MSPaint Microsoft.MSPaint_2019.729.2301.0_neu... Microsoft.Office.OneNote Microsoft.Office.OneNote_16001.12026.... Microsoft.People Microsoft.People_2019.305.632.0_neutr... Microsoft.ScreenSketch Microsoft.ScreenSketch_2019.904.1644.... Microsoft.SkypeApp Microsoft.SkypeApp_14.53.77.0_neutral... Microsoft.StorePurchaseApp Microsoft.StorePurchaseApp_11811.1001... Microsoft.VCLibs.140.00 Microsoft.VCLibs.140.00_14.0.27323.0_... Microsoft.VP9VideoExtensions Microsoft.VP9VideoExtensions_1.0.2268... Microsoft.Wallet Microsoft.Wallet_2.4.18324.0_neutral_... Microsoft.WebMediaExtensions Microsoft.WebMediaExtensions_1.0.2087... Microsoft.WebpImageExtension Microsoft.WebpImageExtension_1.0.2275... Microsoft.Windows.Photos Microsoft.Windows.Photos_2019.19071.1... Microsoft.WindowsAlarms Microsoft.WindowsAlarms_2019.807.41.0... Microsoft.WindowsCalculator Microsoft.WindowsCalculator_2020.1906... Microsoft.WindowsCamera Microsoft.WindowsCamera_2018.826.98.0... microsoft.windowscommunicationsapps microsoft.windowscommunicationsapps_1... Microsoft.WindowsFeedbackHub Microsoft.WindowsFeedbackHub_2019.111... Microsoft.WindowsMaps Microsoft.WindowsMaps_2019.716.2316.0... Microsoft.WindowsSoundRecorder Microsoft.WindowsSoundRecorder_2019.7... Microsoft.WindowsStore Microsoft.WindowsStore_11910.1002.513... Microsoft.Xbox.TCUI Microsoft.Xbox.TCUI_1.23.28002.0_neut... Microsoft.XboxApp Microsoft.XboxApp_48.49.31001.0_neutr... Microsoft.XboxGameOverlay Microsoft.XboxGameOverlay_1.46.11001.... Microsoft.XboxGamingOverlay Microsoft.XboxGamingOverlay_2.34.2800... Microsoft.XboxIdentityProvider Microsoft.XboxIdentityProvider_12.50.... Microsoft.XboxSpeechToTextOverlay Microsoft.XboxSpeechToTextOverlay_1.1... Microsoft.YourPhone Microsoft.YourPhone_2019.430.2026.0_n... Microsoft.ZuneMusic Microsoft.ZuneMusic_2019.19071.19011.... Microsoft.ZuneVideo Microsoft.ZuneVideo_2019.19071.19011.... c:\Work>dism /image:mount /cleanup-image /ScanHealth Deployment Image Servicing and Management tool Version: 10.0.14393.4169 Image Version: 10.0.19041.1 [==========================100.0%==========================] No component store corruption detected. The operation completed successfully.
Not sure if the zip package was fixed in later revisions but clearly it was made with some bits taken from LTSC 2019 Not a biggie but if you have HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName as Windows 10 Enterprise LTSC 2019 You have just to replace the \Windows\Branding folder with the one taken from the real LTSC 2021 (and reboot)
I just checked .1288 LTSC for ProvisionedAppxPackages with: Code: Powershell -Command "Get-AppXProvisionedPackage -Path YourMountedImagePath | Format-Table DisplayName, PackageName and there seems to be none, so I guess I will remove the ones in my .1 LTSC as suggested a while back here.