- (Setup-dependent) Run
blkdiscard
ornvme 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 + F10
to 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
F12
repeatedly for EFI binary selector.
- Shutdown the system:
- Press
Shift + F10
to open CMD. Start PowerShell withScripts/PowerShell_BypassExecPol.bat
Import Group Policy:Scripts/OOBE/Import_Template_GPO.ps1
Deprovision 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+Delete
menu
[EDIT] Check out the comment from WinkelCode below. Very helpfull 😄
[original] You can also leave network connected, and upon microsoft account creation/login,
confuse Windows by inputting an email address that has been used too many times. The go-to email for this method is "[email protected]" which you can add on the
Let's add your Microsoft account
screen. Type a random password and done, profit.to disconnect the network if you cannot do so manually (cable, hardware switch, virtually):
Shift+F10
and typingipconfig /release