Window 11

Network Adapters

@ "Control Panel\Network and Internet\Network Connections"

Install

Use [Rufus]() or [Ventoy]() utility to create a bootable USB

Machine Prep

Gather information for bootable USB creation

# Partition Style
(Get-Disk -Number (Get-Partition -DriveLetter $env:SystemDrive.Substring(0, 1)).DiskNumber).PartitionStyle

# EUFI Secure Boot status
Confirm-SecureBootUEFI

Disable Requirement for MS Online Account Sign-in

We want to install a local-only account, bypassing requirement of online Microsoft account

Rufus has options that handle this when burning to a USB drive.

Otherwise, or additional methods …

Build 24H2

Method if After Installation

The default OS install has a "Welcome" login sequence requiring a Microsoft account. It blocks user from login until user signs up for MS account, enters creds of existing account, or selects a button that is effectively a "Repeatedly block and bother me again later".

This statement cures that:

Set-ExecutionPolicy Unrestricted

Set-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" -Name "NoConnectedUser" -Value 3 -Type DWord

Builds 26120 and beyond

The OOBE/BYPASSNRO command has been erased and no longer works. Instead, there's a new command called start ms-chx:localonly that does something similar. Here's how you use it.

Activate @ "Not Activated"

How to Activate via KMS using Microsoft Activation Scripts (MAS) method at a PowerShell terminal:

Install-WindowsFeature -Name VolumeActivation -IncludeManagementTools

# Run this statement and select the "KMS" option at its menu
irm https://get.activated.win | iex

OS/Boot Utilities

# Add drivers to mounted WIM  
dism /mount-wim /wimfile:D:\sources\install.wim /index:1 /mountdir:C:\Mount
dism /Image:S:\Mount /Add-Driver /Driver:C:\drivers\ /Recurse
dism /unmount-wim /mountdir:C:\Mount /commit
oscdimg -m -o -u2 -udfver102 -bootdata:2#p0,e,bD:\boot\etfsboot.com#pEF,e,bD:\efi\microsoft\boot\efisys.bin D:\ C:\Win11-custom.iso

# Fix boot record
bcdboot S:\Windows /s Z: /f UEFI # Z: is (small ~ 100MB) EFI partition
shutdown /r /t 1 /o

# Fix OS
sfc /scannow
DISM /Online /Cleanup-Image /RestoreHealth