Nice summary. Removing the en-US packages would be the sugar on top of it, and changing the working directory to the DISM would remove a lot of redundant text and the script would be easier to read.
Well i tried your script to create a en-gb version but i got an error when trying to apply the lp to winre .... see .... Spoiler C:\original_sources\langpacks\winpe_oc\lp.cab 2 File(s) copied C:\original_sources\langpacks\winpe_oc\lp.cab C:\original_sources\langpacks\winpe_oc\WinPE-DismCmdlets_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-Dot3Svc_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-EnhancedStorage_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-HTA_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-LegacySetup_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-MDAC_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-NetFx_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-PowerShell_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-PPPoE_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-Rejuv_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-RNDIS_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-Scripting_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-SecureStartup_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-Setup-Client_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-Setup-Server_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-Setup_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-SRT_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-StorageWMI_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-WDS-Tools_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-WinReCfg_en-gb.cab C:\original_sources\langpacks\winpe_oc\WinPE-WMI_en-gb.cab 22 File(s) copied Deployment Image Servicing and Management tool Version: 6.3.9600.16384 Mounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 6.3.9600.16384 Mounting image [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 6.3.9600.16384 Image Version: 6.3.9600.16384 Processing 1 of 1 - Adding package Microsoft-Windows-Client-LanguagePack-Package ~31bf3856ad364e35~amd64~en-GB~6.3.9600.16384 [==========================100.0%==========================] The operation completed successfully. Deployment Image Servicing and Management tool Version: 6.3.9600.16384 Image Version: 6.3.9600.16384 Processing 1 of 22 - Adding package Microsoft-Windows-WinPE-LanguagePack-Package ~31bf3856ad364e35~amd64~en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 2 of 22 - Adding package WinPE-DismCmdlets-Package~31bf3856ad364e35~a md64~en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 3 of 22 - Adding package WinPE-Dot3Svc-Package~31bf3856ad364e35~amd64 ~en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 4 of 22 - Adding package WinPE-EnhancedStorage-Package~31bf3856ad364e 35~amd64~en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 5 of 22 - Adding package WinPE-HTA-Package~31bf3856ad364e35~amd64~en- GB~6.3.9600.16384 [==========================100.0%==========================] Processing 6 of 22 - Adding package WinPE-LegacySetup-Package~31bf3856ad364e35~a md64~en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 7 of 22 - Adding package WinPE-MDAC-Package~31bf3856ad364e35~amd64~en -GB~6.3.9600.16384 [==========================100.0%==========================] Processing 8 of 22 - Adding package WinPE-NetFx-Package~31bf3856ad364e35~amd64~e n-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 9 of 22 - Adding package WinPE-PowerShell-Package~31bf3856ad364e35~am d64~en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 10 of 22 - Adding package WinPE-PPPoE-Package~31bf3856ad364e35~amd64~ en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 11 of 22 - Adding package WinPE-Rejuv-Package~31bf3856ad364e35~amd64~ en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 12 of 22 - Adding package WinPE-RNDIS-Package~31bf3856ad364e35~amd64~ en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 13 of 22 - Adding package WinPE-Scripting-Package~31bf3856ad364e35~am d64~en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 14 of 22 - Adding package WinPE-SecureStartup-Package~31bf3856ad364e3 5~amd64~en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 15 of 22 - Adding package WinPE-Setup-Client-Package~31bf3856ad364e35 ~amd64~en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 16 of 22 - Adding package WinPE-Setup-Server-Package~31bf3856ad364e35 ~amd64~en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 17 of 22 - Adding package WinPE-Setup-Package~31bf3856ad364e35~amd64~ en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 18 of 22 - Adding package WinPE-SRT-Package~31bf3856ad364e35~amd64~en -GB~6.3.9600.16384 [==========================100.0%==========================] Processing 19 of 22 - Adding package WinPE-StorageWMI-Package~31bf3856ad364e35~a md64~en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 20 of 22 - Adding package WinPE-WDS-Tools-Package~31bf3856ad364e35~am d64~en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 21 of 22 - Adding package WinPE-WinReCfg-Package~31bf3856ad364e35~amd 64~en-GB~6.3.9600.16384 [==========================100.0%==========================] Processing 22 of 22 - Adding package WinPE-WMI-Package~31bf3856ad364e35~amd64~en -GB~6.3.9600.16384 [==========================100.0%==========================] Error: 0x800f081e The specified package is not applicable to this image. The specified package is not applicable to this image. The specified package is not applicable to this image. The specified package is not applicable to this image. The specified package is not applicable to this image. The specified package is not applicable to this image. The specified package is not applicable to this image. The specified package is not applicable to this image. The specified package is not applicable to this image. The specified package is not applicable to this image. The specified package is not applicable to this image. The specified package is not applicable to this image. The specified package is not applicable to this image. The command completed with errors. For more information, refer to the log file. The DISM log file can be found at C:\Windows\Logs\DISM\dism.log Deployment Image Servicing and Management tool Version: 6.3.9600.16384 Did you mean just copy the en-gb cab or all the cabs with the folder?
Although I didn't use your script since I already have mine, I found a weird problem adding the French language pack into an English image. The modern apps are still in English, no mather if I select French or English during installation. Removing the English language pack AND re-applying the french language pack seems to fix the problem once installed. Did you had the same problem?
unistall all apps from store showing wrong language and reinstall in store and they get changed to your local lp
hum.... is there a way to have them in both language in the image? Since I want my end user to select if the want the computer in french or English? I don't have this problem winth 8, only with 8.1
I'm serious it won't work. Apps are updated since available through store in your language only afaik
One need to have version 6.3.9600.16384 to install language packs, right? If I use an image that is updated (kb-packages included), language packs can't be integrated. I am looking for a Windows 8.1 N image, but this is not easy obtained anymore -I have updated ones, but I am not sure those will work when it comes to integrating LP's. Can anyone help? Is it possible to uninstall packages using dism to "downgrade" an updated install.wim?