To remove, no need to set anything, just remove. e.g. There are 5 images in Core install.wim, just remove 4 images in sequences. 1. remove image 1 2. remove image 2 3. remove image 3 4. remove image 4 You can try combining these 4 images in a xml. (I haven't tried it because I use automatic detection and removal, no need to know how many images in the install.wim.)
Here, 17134.1 EnterpriseG. Code: Deployment Image Servicing and Management tool Version: 10.0.19041.746 Mounting image [==========================100.0%==========================] The operation completed successfully. mum\.\Microsoft-Windows-EditionSpecific-EnterpriseG-Package~31bf3856ad364e35~amd64~~10.0.17134.1.cat mum\.\Microsoft-Windows-EditionSpecific-EnterpriseG-Package~31bf3856ad364e35~amd64~~10.0.17134.1.mum mum\.\Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.17134.1.cat mum\.\Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.17134.1.mum 複製了 4 個檔案。 Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.17134.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.17134.1 Removing package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.17134.1 Removing package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.17134.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.17134.1 [==========================100.0%==========================] The operation completed successfully. 複製了 1 個檔案。 Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.17134.1 The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.17134.1 Starting to install product key... Finished installing product key. The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.17134.1 Current edition is: Current Edition : EnterpriseG The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.17134.1 Editions that can be upgraded to: (The current edition cannot be upgraded to any target editions.) The operation completed successfully. 操作順利完成。 操作順利完成。 操作順利完成。 操作順利完成。 Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.17134.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image File : Z:\17134.1_ENTG_WD_amd64_zh-CN\install.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. 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 "". Setting the NAME property of image 1 to "Windows 10 Enterprise G". Setting the DESCRIPTION property of image 1 to "Windows 10 Enterprise G". Setting the FLAGS property of image 1 to "EnterpriseG". Setting the DISPLAYNAME property of image 1 to "Windows 10 Enterprise G". Setting the DISPLAYDESCRIPTION property of image 1 to "Windows 10 Enterprise G". "install.wim" original size: 3755617 KiB Using LZX compression with 12 threads Archiving file data: 7667 MiB of 7667 MiB (100%) done "install.wim" optimized size: 3528190 KiB Space saved: 227427 KiB Press any key to continue . . . Old but working. I'll polish it.
I see your problem too with latest script. The working one is: 1.xml Code: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <servicing> <package action="stage"> <assemblyIdentity name="Microsoft-Windows-EnterpriseGEdition" version="10.0.17134.1" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" /> <source location="sxs\Microsoft-Windows-EnterpriseGEdition~31bf3856ad364e35~amd64~~10.0.17134.1.mum" /> </package> </servicing> </unattend> 2.xml Code: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <servicing> <package action="install"> <assemblyIdentity name="Microsoft-Windows-EnterpriseGEdition" version="10.0.17134.1" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" /> </package> <package action="remove"> <assemblyIdentity name="Microsoft-Windows-ProfessionalEdition" version="10.0.17134.1" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" /> </package> </servicing> </unattend> 3.xml Code: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <servicing> <package action="install"> <assemblyIdentity name="Microsoft-Windows-Client-LanguagePack-Package" version="10.0.17134.1" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="zh-CN" /> <source location="lp\update.mum" /> </package> </servicing> </unattend>
I knew that you are after EnterpriseSN. Code: 10240 10586 14393 15063 16299, I successfully made ZH-CN single EnterpriseSNEdition. That's enough for me. I jump to 17763. Code: 当前版本 : EnterpriseSN
That is NOT accurate, because some available target edition(s) is not listed there. From \Windows\servicing\Packages, check: Microsoft-Windows-Editions-%EditionID%-Package e.g. 10240.16384 standalone Core Code: ------------------------------------------------------------ Converting 10240.16384 Core to Standalone amd64 xx-XX ------------------------------------------------------------ ------------------------------------------------------------ Mounting image ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.844 Mounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Education ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.10240.16384 Removing package Microsoft-Windows-EducationEdition~31bf3856ad364e35~amd64~~10.0.10240.16384 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Enterprise ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.10240.16384 Removing package Microsoft-Windows-EnterpriseEdition~31bf3856ad364e35~amd64~~10.0.10240.16384 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Removing Professional ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.10240.16384 Removing package Microsoft-Windows-ProfessionalEdition~31bf3856ad364e35~amd64~~10.0.10240.16384 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Getting current edition ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.10240.16384 Current edition is: Current Edition : Core The operation completed successfully. ------------------------------------------------------------ Adding .NET Framework 4.8 ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.10240.16384 Processing 1 of 1 - Adding package Package_for_KB4486129~31bf3856ad364e35~amd64~~10.0.1.2919 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Adding .NET Framework 4.8 xx-XX language pack ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.10240.16384 Processing 1 of 1 - Adding package Package_for_KB4486132~31bf3856ad364e35~amd64~~10.0.1.2752 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Resetting base ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image Version: 10.0.10240.16384 [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Unmounting image ------------------------------------------------------------ Deployment Image Servicing and Management tool Version: 10.0.19041.844 Image File : Z:\00000.0_Core_to_Standalone_ndp48\install.wim Image Index : 1 Saving image [==========================100.0%==========================] Unmounting image [==========================100.0%==========================] The operation completed successfully. ------------------------------------------------------------ Optimizing image ------------------------------------------------------------ "install.wim" original size: 3605375 KiB Using LZX compression with 12 threads Archiving file data: 6769 MiB of 6769 MiB (100%) done "install.wim" optimized size: 3288306 KiB Space saved: 317069 KiB ------------------------------------------------------------ WIM Information ------------------------------------------------------------ Name = Windows 10 Core Description = Windows 10 Core Flags = Core DisplayName = Windows 10 Home DisplayDescription = Windows 10 Home ------------------------------------------------------------ Press any key to continue . . .
If you can not make auto detection and removal of unwanted SKUs, here are the xml. e.g. 15063.0 Core to EnterpriseS amd64 1.xml Code: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <servicing> <package action="stage"> <assemblyIdentity name="Microsoft-Windows-EnterpriseSEdition" version="10.0.15063.0" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" /> <source location="sxs\Microsoft-Windows-EnterpriseSEdition~31bf3856ad364e35~amd64~~10.0.15063.0.mum" /> </package> </servicing> </unattend> 2.xml Code: <?xml version="1.0" encoding="utf-8"?> <unattend xmlns="urn:schemas-microsoft-com:unattend"> <servicing> <package action="install"> <assemblyIdentity name="Microsoft-Windows-EnterpriseSEdition" version="10.0.15063.0" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" /> </package> <package action="remove"> <assemblyIdentity name="Microsoft-Windows-EnterpriseGEdition" version="10.0.15063.0" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" /> </package> <package action="remove"> <assemblyIdentity name="Microsoft-Windows-EducationEdition" version="10.0.15063.0" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" /> </package> <package action="remove"> <assemblyIdentity name="Microsoft-Windows-ProfessionalEducationEdition" version="10.0.15063.0" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" /> </package> <package action="remove"> <assemblyIdentity name="Microsoft-Windows-ProfessionalEdition" version="10.0.15063.0" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" /> </package> <package action="remove"> <assemblyIdentity name="Microsoft-Windows-CoreEdition" version="10.0.15063.0" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" /> </package> </servicing> </unattend> [outcome] EnterpriseS (Lite) (without Store) amd64 xx-XX for example Code: Start creating 15063.0 EnterpriseS (Lite) (without Store) amd64 in xx-XX Mounting image Creating EnterpriseS Removing Core Current Edition : EnterpriseS Removing Store Cleaning up image Unmounting image install.wim of 15063.0 EnterpriseS (Lite) (without Store) amd64 in xx-XX has been successfully created WIM Information: --------------------- NAME="Windows 10 Enterprise (Lite) 2016 LTSB (without Store)" DESCRIPTION="Windows 10 Enterprise (Lite) 2016 LTSB (without Store)" FLAGS="EnterpriseS" DISPLAYNAME="Windows 10 Enterprise (Lite) 2016 LTSB (without Store)" DISPLAYDESCRIPTION="Windows 10 Enterprise (Lite) 2016 LTSB (without Store)" --------------------- Press any key to continue . . .