Skip to content

Instantly share code, notes, and snippets.

@Tatsh
Last active May 14, 2022 06:52
Show Gist options
  • Save Tatsh/3e81bc944153035718964117ca70bf03 to your computer and use it in GitHub Desktop.
Save Tatsh/3e81bc944153035718964117ca70bf03 to your computer and use it in GitHub Desktop.
@echo off
diskpart /s make-partitions.txt
dism /Apply-Image /ImageFile:E:\sources\install.wim /Index:1 /ApplyDir:W:\
bcdboot W:\Windows /s S: /f UEFI
  1. Press Shift+F10 to open command prompt.
  2. Assuming disk is 0, run diskpart and run the following:
select disk 0
clean
convert gpt
create partition efi size=256
format quick fs=fat32 label=System
assign letter=S
create partition primary
format quick fs=ntfs label=Windows
assign letter=W
exit
  1. Assuming the installation disc is at E:, run dism /Apply-Image /ImageFile:E:\sources\install.wim /Index:1 /ApplyDir:W:\.
  2. bcdboot W:\Windows /s S: /f UEFI
  3. Reboot to the disk.
select disk 0
clean
convert gpt
create partition efi size=256
format quick fs=fat32 label=System
assign letter=S
create partition primary
format quick fs=ntfs label=Windows
assign letter=W
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment