Windows ADK(Windows アセスメント デプロイメント キット)をダウンロードインストールしておく。
インストールの時には「Deplayment Tools」と「Windows Preinstallation Environment (Windows PE)」を選択してインストールしておく。
インストール後、「展開およびイメージングツール環境」を管理者権限で起動。
copype amd64 c:\WinPE_x64
Dism /Mount-Wim /WimFile:C:\WinPE_x64\media\sources\boot.wim /index:1 /MountDir:C:\WinPE_x64\mount
Dism /image:c:\WinPE_x64\mount /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\ja-jp\lp.cab" Dism /image:c:\WinPE_x64\mount /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-FontSupport-JA-JP.cab" Dism /image:c:\WinPE_x64\mount /Set-allintl:ja-jp Dism /image:c:\WinPE_x64\mount /Set-TimeZone:"Tokyo Standard Time" Dism /image:c:\WinPE_x64\mount /Set-LayeredDriver:6
Dism /image:c:\WinPE_x64\mount /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-WMI.cab" Dism /image:c:\WinPE_x64\mount /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\ja-JP\WinPE-WMI_ja-jp.cab"
Dism /image:c:\WinPE_x64\mount /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-NetFx.cab" Dism /image:c:\WinPE_x64\mount /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\ja-JP\WinPE-NetFx_ja-jp.cab"
Dism /image:c:\WinPE_x64\mount /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-Scripting.cab" Dism /image:c:\WinPE_x64\mount /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\ja-JP\WinPE-Scripting_ja-jp.cab"
Dism /image:c:\WinPE_x64\mount /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-Powershell.cab" Dism /image:c:\WinPE_x64\mount /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\8.1\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\ja-JP\WinPE-Powershell_ja-jp.cab"
Dism /Unmount-Wim /MountDir:C:\WinPE_x64\mount /Commit
/commitを/discardにすると、適用をキャンセルできる。
※アンマウント前にMountDir配下のファイルはすべて保存、終了し、エクスプローラーやコマンドプロンプトも別の場所に移動しておくこと
Makewinpemedia /iso c:\WinPE_x64 c:\WinPE_x64\winpe.iso
Makewinpemedia /ufd c:\WinPE_x64 X: