- (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
@CodeAsm
Thank you for your comment, let me address the points you made;
When doing the method of intentionally entering a locked account, I recommend using
[email protected]
or[email protected]
as these are owned by the IANA (https://www.iana.org/help/example-domains), so you can be sure you aren't interfering with someone else's account.This is nit-picking, but
ipconfig /release
doesn't disconnect the network, it just releases the DHCP lease. But yes, in practice, without an assigned IP address, programs effectively have no network connection. If you need to actually disconnect the network in software, you can use PowerShell:Requires elevated privileges,
-Name Ethernet
is applicable in my case, useGet-NetAdapter
to check which adapter(s) you want to turn off. This should also persist through reboots (OOBE onwards).I hope this explains it, if you have any other questions feel free to ask.