Criando a pasta principal
copype amd64 c:\winpe_amd64
Montar
Dism /Mount-Image /ImageFile:"C:\winpe_amd64\media\sources\boot.wim" /index:1 /MountDir:"C:\winpe_amd64\mount"
Imagex
copy "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM\imagex.exe" C:\winpe_amd64\media
Criar pastas das imagens
mkdir C:\winpe_amd64\media\W10Pro64b
mkdir C:\winpe_amd64\media\W7Pro64b
mkdir C:\winpe_amd64\media\W10LTSC64b
mkdir C:\winpe_amd64\media\W10PRO20H264b
Inserir drivers
Inserir .cabs
Dism /image:c:\winpe_amd64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-hta.cab"
Dism /image:c:\winpe_amd64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-mdac.cab"
Dism /image:c:\winpe_amd64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-scripting.cab"
Dism /image:c:\winpe_amd64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\winpe-wmi.cab"
Dism /image:c:\winpe_amd64\mount /Add-Package /PackagePath:"C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Windows Preinstallation Environment\amd64\WinPE_OCs\WinPE-Dot3Svc.cab"
Mudar imagem (papel de parede winpe.jpeg)
*Instalar o software SubInACL.exe
cd C:\Program Files (x86)\Windows Resource Kits\Tools\
subinacl.exe /file C:\winpe_amd64\mount\Windows\System32\winpe.jpg /setowner="%username%"
subinacl.exe /file C:\winpe_amd64\mount\Windows\System32\winpe.jpg /grant="%USERNAME%"=F
Ver pacotes instalados
Dism /Get-Packages /Image:"C:\winpe_amd64\mount"
Arquivo autônomo
*Abrir a imagem (install.wim) e criar as pastas abaixo:
mkdir %windir%\Panther\
mkdir %windir%\Panther\Unattend
Copiar o arquivo Unattend.xml nas pastas acima.
Salvar alterações
Dism /Unmount-Image /MountDir:"C:\winpe_amd64\mount" /commit
Gerar iso
md C:\Rede
MakeWinPEMedia /ISO C:\winpe_amd64 C:\Rede\DVD.iso
Gerar um PenDrive
MakeWinPEMedia /UFD C:\winpe_amd64 P:
Limpeza dos recursos associados à imagem montada
dism /Cleanup-Mountpoints
Aplicar imagem manualmente
DISKPART /S Particionar.txt (particionar.txt)
ou
select disk 0
clean
create partition primary size=500
format quick fs=ntfs label="Reservado pelo sistema"
assign letter="S"
active
create partition primary
format quick fs=ntfs label="Aplicativos"
assign letter="C"
exit
Dism /apply-image /imagefile:X:\W10Pro64b\install.wim /index:1 /ApplyDir:C:\
ou no caso de arquivos "swm".
Dism /apply-image /imagefile:X:\W10Pro64b\install.swm /swmfile:X:\W10Pro64b\install*.swm /index:1 /applydir:C:\
Dism /apply-image /imagefile:%PENDRIVE%\W7Pro64b\install_programas.swm /swmfile:%PENDRIVE%\W7Pro64b\install_programas*.swm /index:1 /applydir:C:\
C:\Windows\System32\bcdboot C:\Windows /l pt-BR
wpeutil shutdown
ou
wpeutil reboot