Skip to content

Instantly share code, notes, and snippets.

@senina4
Last active July 14, 2024 08:09
Show Gist options
  • Save senina4/71c2c65b56cf7c90dc086bd803968a57 to your computer and use it in GitHub Desktop.
Save senina4/71c2c65b56cf7c90dc086bd803968a57 to your computer and use it in GitHub Desktop.
Install Windows via command line

Install Windows via command line

diskpart
    convert gpt
    sel disk 0
    create part efi size=500
    format fs=fat32 quick
    assign letter w
    create part primary
    format quick
    assign letter c
    exit
cd D:\sources
# Get dism index by this command: dism /get-imageinfo /imagefile:install.wim
dism /apply-image /imagefile:install.wim /index:1 /applydir:C:
bcdboot C:\windows /s W:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment