本サイトはアフィリエイト広告を使用しています。

WindowsPEを作成時のコマンドリスト

32bitのWindowsPEを作成する場合のコマンドになります。

32bit Windows PEでは64bitアプリは実行できません

作業フォルダーは C:\WinPE_x86 です。
※WindowsADKやWindows10のインストールパッケージ、Microsoftのサイトで32bit:x86、64biti:amd64となっているので自分がわかりやすくするため。


※WindowsPEファイルの作業コピーの作成※

copype x86 C:\WinPE_x86

※マウント※

Dism /Mount-Image /ImageFile:"C:\WinPE_x86\media\sources\boot.wim" /index:1 /MountDir:"C:\WinPE_x86\mount"

※インストール言語の確認※

Dism /image:C:\WinPE_x86\mount /get-intl

※日本語言語パックや各種モジュールを組み込んでから日本語設定を有効にする※

Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\ja-jp\lp.cab"

Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-FontSupport-JA-JP.cab"
Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-WMI.cab"
Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-WMI_ja-jp.cab"
Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-NetFx.cab"
Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-NetFx_ja-jp.cab"
Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-Scripting.cab"
Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\ja-jp\WinPE-Scripting_ja-jp.cab"
Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-PowerShell.cab"
Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\ja-jp\WinPE-PowerShell_ja-jp.cab"
Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-DismCmdlets.cab"
Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-DismCmdlets_ja-jp.cab"
Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-SecureBootCmdlets.cab"
Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\WinPE-WDS-Tools.cab"
Dism /Image:"C:\WinPE_x86\mount" /Add-Package /Packagepath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\x86\WinPE_OCs\ja-jp\WinPE-WDS-Tools_ja-jp.cab"
Dism /Image:"C:\WinPE_x86\mount" /Enable-Feature /FeatureName:SMB1Protocol

Dism /Image:"C:\WinPE_x86\mount" /Set-Allintl:ja-jp
Dism /Image:"C:\WinPE_x86\mount" /Set-Inputlocale:0411:00000411
Dism /Image:"C:\WinPE_x86\mount" /Set-Layereddriver:6
Dism /Image:"C:\WinPE_x86\mount" /Set-Timezone:"Tokyo Standard Time"

※アンマウント※

Dism /Unmount-Image /MountDir:C:\WinPE_x86\mount /Commit

※USB起動ディスク作成※ USBドライブがDの場合

MakeWinPEMedia /UFD C:\WinPE_x86 D:

※ISOファイル作成※

MakeWinPEMedia /ISO C:\WinPE_x86 C:\WinPE_x86\WinPE_x86.iso

コメント