fbpx

[Windows 10] Multilingual Image Creation & Deployment using DISM

Mount install.wim & adding language pack

1. Run the Deployment & Imaging Tools as administrator.

2.  Get info

I. Get info if the Wim File.

Type command :
Dism /Get-WIMInfo /WimFile:C:my_distributionsourcesinstall.wim

II. Mount the Wim file according to the Image name.

Type command:
Dism /LogPath:C:DismLogsMountOSInstallWim.log /Mount-Wim /WimFile:C:my_distributionsourcesinstall.wim /Name:”Windows 10 Pro” /MountDir:C:testoffline

image

3. Add Language Pack.

Type command:

Dism /image:C:testoffline /LogPath:C:DismLogsAddLangPack.log /Add-Package /PackagePath:C:testLangPacksMicrosoft-Windows-Client-Language-Pack_x64_zh-cn.cab

You can add multiple languages in one command line. Command eg:

Dism /image:C:testoffline /LogPath:C:DismLogsAddLangPack.log /Add-Package /PackagePath:C:testLangPacks Microsoft-Windows-Client-Language-Pack_x64_ja-jp.cab /PackagePath:C:testLangPacksMicrosoft-Windows-Client-Language-Pack_x64_ko-kr.cab /PackagePath:C:testLangPacksMicrosoft-Windows-Client-Language-Pack_x64_th-th.cab

image

4. Unmount the Wim once language is added.

Type command:

Dism /Unmount-WIM /MountDir:C:testoffline /commit

image

Mount boot.wim & adding language pack

1. Mount the boot.wim file.
Type command :

Dism /Logpath:C:DismLogsMountBootWim.log /Mount-Wim /WimFile:C:my_distributionsourcesboot.wim /Index:2 /MountDir:C:testoffline

image

2. Add the WinPE LangPack
Type Command:

Dism /image:C:testoffline /Logpath:C:DismLogsAddWinPELangPack.log /Add-Package /PackagePath:C:testWinPE_LangPacksWinPE-Setup_zh-cn.cab

image

You can add multiple languages in one command line eg :

Dism /image:C:testoffline /Logpath:C:DismLogsAddWinPELangPack.log /Add-Package /PackagePath:C:testWinPE_LangPacksWinPE-Setup_zh-cn.cab /PackagePath:C:testWinPE_LangPacksWinPE-Setup_ja-jp.cab /PackagePath:C:testWinPE_LangPacksWinPE-Setup_ko-kr.cab /PackagePath:C:testWinPE_LangPacksWinPE-Setup_th-th.cab

image

3. Once added, copy the required language folders from
C:testofflinesources to C:my_distributionsources

image

4. Proceed to unmount the boot.wim
Type command:

Dism /Unmount-WIM /MountDir:C:testoffline /commit

image

Re-Create the Lang.ini file

1. Mount the install.wim file again.

Type command :

Dism /LogPath:C:DismLogsMountOSInstallWim.log /Mount-Wim /WimFile:C:my_distributionsourcesinstall.wim /Name:”Windows 10 Pro” /MountDir:C:testoffline

image

2.
Type command:

Dism /image:C:testoffline /Gen-LangINI /distribution:C:my_distribution
(If you want to check if your language pack is installed: Dism /image:C:testoffline /distribution:C:my_distribution /Get-Intl)

Unmount the wim.
Type command:

Dism /Unmount-WIM /MountDir:C:testoffline /commit

image

3. Mount the boot.wim file to copy the lang.ini file.
Type command:

Dism /LogPath:C:DismLogsMountBootWim.log /Mount-Wim /WimFile:C:my_distributionsourcesboot.wim /Index:2 /MountDir:C:testoffline

Then,

Xcopy C:my_distributionsourceslang.ini C:testofflinesourceslang.ini
Overwrite? Y

image

Once complete, unmount.
Dism /Unmount-WIM /MountDir:C:testoffline /commit

image

This post first appeared on MJ's IT Technical Journey. Read the original article.