- (Setup-dependent) Run
blkdiscardornvme format -s [1/2] -r(followed byblkdiscard) for the disk. - EFI:
- Size: 100MiB
- Type: EF00 (EFI System Partition) (Type may be optional depending on modern UEFI firmware)
- MSR (Microsoft Reserved):
- Size: 16MiB
- Type: 0C01 (Microsoft Reserved Partition)
- Always discard/zero the MSR after creation.
- Root/OS Partition:
- Size: ((Disk Size * 0.9) - (EFI + MSR))
- Type: 0700 (Microsoft Basic Data)
- Boot from the Windows installation media and press
Shift + F10to open CMD. - Partition Formatting:
- Run
diskpart - List disks:
list disk - Select disk:
select disk [number] - List partitions:
list partition - EFI Partition:
- Select partition:
select partition [number] - Format:
format quick fs=fat32 label="EFI" - Assign letter:
assign letter=S
- Select partition:
- Microsoft Reserved (MSR) Partition: No action needed.
- Root/OS Partition:
- Select partition:
select partition [number] - Format:
format quick fs=ntfs label="Windows" - Assign letter:
assign letter=W
- Select partition:
- Creating a ReFS Volume (Optional):
- Select partition:
select partition [number] - Format:
format quick fs=ReFS label="[label]" - Letter is assigned automatically.
- Select partition:
- Exit
diskpart:exit
- Run
- Windows Image Deployment:
- Assumptions:
E:\is the installation medium
- Get Index Number of Available Editions:
dism /Get-WimInfo /WimFile:"E:\sources\install.wim"
- Apply Selected Windows Edition:
dism /Apply-Image /ImageFile:"E:\sources\install.wim" /index:[edition_index] /ApplyDir:W:\
- Install Bootloader:
W:\Windows\System32\bcdboot.exe "W:\Windows" /s S:
- Assumptions:
- Finalize Installation:
- Shutdown the system:
wpeutil shutdown - Ensure networking is disconnected.
- Start PC and press
F12repeatedly for EFI binary selector.
- Shutdown the system:
- Press
Shift + F10to open CMD. Start PowerShell withScripts/PowerShell_BypassExecPol.batImport Group Policy:Scripts/OOBE/Import_Template_GPO.ps1Deprovision bloat apps:Scripts/OOBE/Deprovision_Bloat_Appx.ps1- Run
C:\Windows\System32\oobe\BypassNRO.cmd- Expect automatic restart - Complete OOBE Setup:
- Use empty (no) password.
- Set user password from
Ctrl+Alt+Deletemenu
Note:
From my experience, modern UEFI firmware will just search any FAT32 partition for viable EFI executables. Using another type (like
0700) can avoid issues with other OS installs trying to insert themselves on the same partition.I keep 10% for SSD over-provisioning. This is the same as Samsung Magician last time I used it.
Avoids mandatory recovery question or hints, just sets a plain password.