For 22000, it is Terminal on the right-click menu by default. So, you can not remove this App for EnterpriseS reconstruction if you need it.
:: TERMINAL=0, 1 set TERMINAL=0 echo. echo Removing Apps if %TERMINAL% equ 0 (dir /b "%MT%\Program Files\WindowsApps\*neutral_~_*" >temp\DelAppx.txt) else ( dir /b "%MT%\Program Files\WindowsApps\*neutral_~_*" >temp\1.txt findstr /I /V "WindowsTerminal" temp\1.txt >temp\DelAppx.txt ) for /f %%i in ('findstr /i . temp\DelAppx.txt 2^>nul') do dism /english /quiet /scratchdir:temp /image:%MT% /Remove-ProvisionedAppxPackage /Packagename:%%i Step1: dir all Apps (except SecurityUI) dir /b "%MT%\Program Files\WindowsApps\*neutral_~_*" >temp\1.txt Step2: if TERMINAL=0, Exclude WindowsTerminal if TERMINAL=1, Include WindowsTerminal Step 3: Remove unwanted App for /f %%i in ('findstr /i . temp\DelAppx.txt 2^>nul') do dism /english /quiet /scratchdir:temp /image:%MT% /Remove-ProvisionedAppxPackage /Packagename:%%i
My new App removal command in reconstruction script Code: echo. echo Removing Apps if exist temp\1.txt del /f /q temp\1.txt for /f "tokens=2 delims=: " %%i in ('dism /english /scratchdir:temp /image:%MT% /Get-ProvisionedAppxPackages ^| find /I "PackageName"') do (echo %%i >>temp\1.txt) findstr /I /V "SecHealthUI Terminal AppInstaller Store XboxIdentity" temp\1.txt >temp\DelAppx.txt for /f %%i in ('findstr /i . temp\DelAppx.txt 2^>nul') do dism /english /quiet /scratchdir:temp /image:%MT% /Remove-ProvisionedAppxPackage /Packagename:%%i 1. Fetch all available App package to temp\1.txt Code: for /f "tokens=2 delims=: " %%i in ('dism /english /scratchdir:temp /image:%MT% /Get-ProvisionedAppxPackages ^| find /I "PackageName"') do (echo %%i >>temp\1.txt) 2. Fetch all available package in temp\1.txt to temp\DelAppx.txt, excluding packages with following string SecHealthUI Terminal AppInstaller Store XboxIdentity Code: findstr /I /V "SecHealthUI Terminal AppInstaller Store XboxIdentity" temp\1.txt >temp\DelAppx.txt 3. Remove App packages listed in temp\DelAppx.txt Code: for /f %%i in ('findstr /i . temp\DelAppx.txt 2^>nul') do dism /english /quiet /scratchdir:temp /image:%MT% /Remove-ProvisionedAppxPackage /Packagename:%%i
Code: echo. echo Removing Apps if exist temp\1.txt del /f /q temp\1.txt for /f "tokens=2 delims=: " %%i in ('dism /english /scratchdir:temp /image:%MT% /Get-ProvisionedAppxPackages ^| find /I "PackageName"') do (echo %%i >>temp\1.txt) findstr /I /V "SecHealthUI Terminal AppInstaller Store XboxIdentity" temp\1.txt >temp\DelAppx.txt for /f %%i in ('findstr /i . temp\DelAppx.txt 2^>nul') do dism /english /quiet /scratchdir:temp /image:%MT% /Remove-ProvisionedAppxPackage /Packagename:%%i --> Code: echo. echo Removing Apps set "KEPT=SecHealthUI Terminal AppInstaller Store XboxIdentity" for /f "tokens=2 delims=: " %%i in ('dism /english /scratchdir:temp /image:%MT% /Get-ProvisionedAppxPackages ^| find /I "PackageName" ^| findstr /I /V "%KEPT%"') do (dism /quiet /scratchdir:temp /image:%MT% /Remove-ProvisionedAppxPackage /Packagename:%%i) PS. Modify the App you want to keep in here (more convenient) Code: set "KEPT=SecHealthUI Terminal AppInstaller Store XboxIdentity" --> Code: Converting 22000.1 Windows 11 Professional to Enterprise LTSC in Classic mode amd64 xx-XX Mounting image Creating EnterpriseS Adding xx-XX client language pack Current Edition : EnterpriseS (OEM) Removing Apps Resetting base Unmounting image 22000.1 Windows 11 Enterprise LTSC in Classic mode amd64 xx-XX has been successfully created Press any key to continue . . .
After reading the message I found and download this script: Spoiler: 19041.1_PRO-to-ENTS_amd64_en-US https://forums.mydigitallife.net/th...nstruction-project.80939/page-22#post-1610863 The SHA-1 was compared, but during testing the below error took place: Code: Deployment Image Servicing and Management tool Version: 10.0.17763.1 Mounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17763.1 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17763.1 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. Deployment Image Servicing and Management tool Version: 10.0.17763.1 Image Version: 10.0.19041.1 [==========================100.0%==========================] Error: 1168 Element not found. The DISM log file can be found at C:\Windows\Logs\DISM\dism.log C:\entS>dism /unmount-wim /mountdir:mount /discard Deployment Image Servicing and Management tool Version: 10.0.17763.1 Image File : C:\entS\install.wim Image Index : 1 Unmounting image [==========================100.0%==========================] The operation completed successfully. C:\entS> An additionally I like attached dism_log, but is very large. Note: we have some difference with How to: the us-US language pack already unpacked and automatically copied from us-US to lp folder by using command inside "Create.cmd". Please advise how I can resolve problem with script. Thanks.
The error is caused by language pack. I followed the How-TO, no problem. Code: Deployment Image Servicing and Management tool Version: 10.0.19041.746 Mounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 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 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. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 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 Current edition is: Current Edition : EnterpriseS The operation completed successfully. Removing Store Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.19041.746 Image File : Z:\19041.1_PRO-to-ENTS_amd64_en-US\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 "Windows 10 Enterprise LTSC 2004". Setting the DESCRIPTION property of image 1 to "Windows 10 Enterprise LTSC 2004". Setting the FLAGS property of image 1 to "EnterpriseS". Setting the DISPLAYNAME property of image 1 to "Windows 10 Enterprise LTSC". Setting the DISPLAYDESCRIPTION property of image 1 to "Windows 10 Enterprise LTSC". Press any key to continue . . . I can not answer your question because I don't know what you have done to the script. Before you can be independent, use the original script. Then, try to modify it to suit your needs step by step. Use "pause" for each step to trouble-shoot the error. PS. Delete this line from the script and save. It is System App dependency. Code: rmdir /q /s "mount\Program Files\WindowsApps\Microsoft.VCLibs.140.00_14.0.27323.0_x64__8wekyb3d8bbwe" >NUL 2>&1
This is content us-US and lp folder: Code: amd64_microsoft-windows-l..terprises.resources_31bf3856ad364e35_10.0.17763.1_en-us_b1bd99683a69a5bd\ amd64_microsoft-windows-l..terprises.resources_31bf3856ad364e35_10.0.17763.1_en-us_da20a5353873bb11\ amd64_microsoft-windows-l..terprises.resources_31bf3856ad364e35_10.0.17763.1_en-us_f3a3a84c855f0c02\ x86_microsoft-windows-l..terprises.resources_31bf3856ad364e35_10.0.17763.1_en-us_559efde4820c3487\ x86_microsoft-windows-l..terprises.resources_31bf3856ad364e35_10.0.17763.1_en-us_7e0209b1801649db\ x86_microsoft-windows-l..terprises.resources_31bf3856ad364e35_10.0.17763.1_en-us_97850cc8cd019acc\ amd64_microsoft-windows-e..oyment-languagepack_31bf3856ad364e35_10.0.17763.1_en-us_3bf9c6e7a45ab9e4.manifest amd64_microsoft-windows-l..terprises.resources_31bf3856ad364e35_10.0.17763.1_en-us_b1bd99683a69a5bd.manifest amd64_microsoft-windows-l..terprises.resources_31bf3856ad364e35_10.0.17763.1_en-us_da20a5353873bb11.manifest amd64_microsoft-windows-l..terprises.resources_31bf3856ad364e35_10.0.17763.1_en-us_f3a3a84c855f0c02.manifest Microsoft-Windows-Editions-EnterpriseS-Package~31bf3856ad364e35~amd64~en-US~10.0.17763.1.cat Microsoft-Windows-Editions-EnterpriseS-Package~31bf3856ad364e35~amd64~en-US~10.0.17763.1.mum Microsoft-Windows-EditionSpecific-EnterpriseS-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1.cat Microsoft-Windows-EditionSpecific-EnterpriseS-Package~31bf3856ad364e35~amd64~en-US~10.0.19041.1.mum update.cat update.mum x86_microsoft-windows-l..terprises.resources_31bf3856ad364e35_10.0.17763.1_en-us_559efde4820c3487.manifest x86_microsoft-windows-l..terprises.resources_31bf3856ad364e35_10.0.17763.1_en-us_7e0209b1801649db.manifest x86_microsoft-windows-l..terprises.resources_31bf3856ad364e35_10.0.17763.1_en-us_97850cc8cd019acc.manifest I used only original script. I try removed this line from the script with same error. If compared my and your codes after scripts were done it's look like in my script problem with installed lp. But your recommendation about "pause" I will be done later. Please check my lp.list for correct content. Thanks.
Yes you right Guru! I put "pause" in line for applying 3_xml and script was done without lp installation: Code: dism /english /scratchdir:"%~dp0temp" /image:mount /apply-unattend:1.xml || exit /b 1 dism /english /scratchdir:"%~dp0temp" /image:mount /apply-unattend:2.xml || exit /b 1 pause dism /english /scratchdir:"%~dp0temp" /image:mount /apply-unattend:3.xml || exit /b 1 Code: Deployment Image Servicing and Management tool Version: 10.0.17763.1 Mounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17763.1 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17763.1 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. Press any key to continue . . . Deployment Image Servicing and Management tool Version: 10.0.17763.1 Image Version: 10.0.19041.1 Current edition is: Current Edition : EnterpriseS The operation completed successfully. Removing Store Deployment Image Servicing and Management tool Version: 10.0.17763.1 Image Version: 10.0.19041.1 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 10.0.17763.1 Image File : C:\entS\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 "Windows 10 Enterprise LTSC 2004". Setting the DESCRIPTION property of image 1 to "Windows 10 Enterprise LTSC 2004". Setting the FLAGS property of image 1 to "EnterpriseS". Setting the DISPLAYNAME property of image 1 to "Windows 10 Enterprise LTSC". Setting the DISPLAYDESCRIPTION property of image 1 to "Windows 10 Enterprise LTSC". Press any key to continue . . . Again please share us-US.zip or not zip correct lp for 19041.1_PRO-TO-ENTS_AMD64_EN-US Thanks.
--> Code: dism /english /scratchdir:"%~dp0temp" /image:mount /apply-unattend:1.xml || exit /b 1 pause dism /english /scratchdir:"%~dp0temp" /image:mount /apply-unattend:2.xml || exit /b 1 pause dism /english /scratchdir:"%~dp0temp" /image:mount /apply-unattend:3.xml || exit /b 1 pause i.e. To trouble-shoot which command line is the error from: Code: Command line pause