Skip to content

Instantly share code, notes, and snippets.

@xardit
Created January 7, 2026 11:20
Show Gist options
  • Select an option

  • Save xardit/3df8e9c6e48e81c5af31b69165272f04 to your computer and use it in GitHub Desktop.

Select an option

Save xardit/3df8e9c6e48e81c5af31b69165272f04 to your computer and use it in GitHub Desktop.
Install Windows 11 Manually DISM

A) Partition the internal disk (UEFI/GPT)

Shift+F10:

diskpart
list disk
select disk 0
clean
convert gpt

create partition efi size=100
format quick fs=fat32 label=EFI
assign letter=S

create partition msr size=16

create partition primary
format quick fs=ntfs label=Windows
assign letter=W
exit

B) Apply the Windows image from any external USB source

Find the USB letter that contains sources (example uses D:). First verify:

dir D:\sources\

List editions (indexes):

dism /Get-WimInfo /WimFile:D:\sources\install.wim

Apply (use the index you want; example index 1):

dism /Apply-Image /ImageFile:D:\sources\install.wim /Index:1 /ApplyDir:W:\

If it’s install.esd, use that filename instead.

C) Make it bootable

bcdboot W:\Windows /s S: /f UEFI
wpeutil reboot

Windows will boot into OOBE and continue setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment