Prepare for bootable USB with some tools to create partitions, disk management.
Once booted into bootable system (say Windows 10 XPE), we can launch diskpart to create partition.
- Start CMD and initiate diskpart
diskpart
list disk
# Use the above information to select the right disk
select disk 0
# If you want to clean all partitions, make sure you back up your data.
clean # This willl wipe out your data.
# If the disk is not in gpt, you can convert to gpt
convert gpt
# Create EFI partition with fat32
create part efi size 256
format fs fat32 quick
assign letter w
- Next, we will create a partition for Windows.
#Create a primary partition with size 100GB = 102400MB
create part primary size 102400
format quick label Windows
assign letter C
- You can create addition partition for your data.
create part primary
format quick label Data
assign letter D
- Now, it is the time to install your Windows from WIM file.
Suppose your Windows installation image is located at E:\sources\install.wim
dism /get-wiminfo /wimfile:E:\sources\install.wim
From the above command, you can see the index of all Windows SKUs that you want to deploy
dism /apply-image /imagefile:E:\sources\install.wim /index:2 /applydir:C:\
- Activate your UEFI boot
bootsect C:\Windows /s W:
- Reboot to enjoy your new system.