To install some features of Windows 10, such as Compact OS, you'll need the Windows 10 version of DISM.
You can include the latest version DISM in your Windows Preinstallation Environment (WinPE) image, or run it from a separate location, such as on a removable drive. If you include it with WinPE, it will add roughly 4MB to the size of your DISM image.
You'll need to install and configure the drivers needed for DISM, including the wimmount.sys and wofadk.sys drivers, each time you boot WinPE.
You can include the latest version DISM in your Windows Preinstallation Environment (WinPE) image, or run it from a separate location, such as on a removable drive. If you include it with WinPE, it will add roughly 4MB to the size of your DISM image.
You'll need to install and configure the drivers needed for DISM, including the wimmount.sys and wofadk.sys drivers, each time you boot WinPE.
To add DISM into your Windows PE image
- On your technician PC, install the Windows ADK for Windows 10.
- Mount WinPE. For WinPE 3.x, mount the file: \sources\winpe.wim. For WinPE 4.x and 5.x, mount the file: \sources\boot.wim.
md "C:\WinPE_amd64\mount" Dism /Mount-Image /ImageFile:"C:\WinPE_amd64\media\sources\boot.wim" /index:1 /MountDir:"C:\WinPE_amd64\mount"
- Copy the DISM folder from the Windows ADK into a new folder in the mounted WinPE image.
md C:\WinPE_amd64\mount\DISM robocopy "C:\Program Files (x86)\Windows Kits\10\Assessment and Deployment Kit\Deployment Tools\amd64\DISM" C:\WinPE_amd64\mount\DISM
Important Don't overwrite the existing DISM files from the system32 folder in the WinPE image. Instead, create a new folder on the host computer to copy the Windows ADK files into. - Unmount WinPE.
Dism /Unmount-Image /MountDir:"C:\WinPE_amd64\mount" /commit
- Create WinPE bootable media, or replace the WinPE image file on your existing removable media.
MakeWinPEMedia /UFD C:\WinPE_amd64 F:
Install and use DISM from WinPE
- Boot your destination device to WinPE.
- Install and configure DISM's required drivers by using either WimMountAdkSetupAmd64.exe /Install or WimMountAdkSetupX86.exe /Install.
X:\DISM\WimMountAdkSetupAmd64.exe /Install /q
- Verify that the Windows 10 version of DISM is installed.
X:\DISM\Dism.exe /?
Deployment Image Servicing and Management tool Version: 10.0.10122.0
- Run DISM commands from the new folder.
X:\DISM\Dism.exe /Apply-Image /ImageFile:install.wim /Index:1 /ApplyDir:W: /Compact
No comments:
Post a Comment