Boot start script
For iSCSI boot, every driver Windows needs early on must start with Windows. This script does that for a long list of drivers at once. It sets Start to 0 for each one, and deletes any StartOverride key that would quietly undo it.
It is a "catch all" script. Drivers that are not on the PC are skipped, so it is safe to leave in drivers for hardware you do not have. The aim is that one disk can boot on Intel, Broadcom, Mellanox, Realtek, VirtIO, Hyper-V and VMware network cards without changes.
If we have missed a driver you need, let us know and we will add it.
How to use it
Install every driver you need first.
Save the script below as
Set-iSCSIBootServices.ps1.Run it as an administrator on the running Windows, before you run Sysprep:
powershell.exe -ExecutionPolicy Bypass -File .\Set-iSCSIBootServices.ps1Restart the PC for the changes to take effect.
The script
# --- Detect the active ControlSet ---
$selectKey = "HKLM:\SYSTEM\Select"
$currentSet = (Get-ItemProperty -Path $selectKey -Name "Current").Current
$controlSetName = "ControlSet{0:D3}" -f $currentSet
$servicesRoot = "HKLM:\SYSTEM\$controlSetName\Services"
Write-Host "Active ControlSet: $controlSetName"
Write-Host "Targeting: $servicesRoot"
Write-Host ""
# --- Service list ---
# Each entry: ServiceName, Description
# Uncommented entries are applied. Commented entries are intentionally skipped (notes inline).
$services = @(
# iSCSI initiator
@{ Name = "MSiSCSI"; Note = "iSCSI Initiator service - REQUIRED" }
@{ Name = "iScsiPrt"; Note = "iSCSI port driver - REQUIRED" }
# General storage
@{ Name = "Disk"; Note = "Disk class driver" }
@{ Name = "partmgr"; Note = "Partition manager" }
@{ Name = "volmgr"; Note = "Volume manager" }
@{ Name = "volsnap"; Note = "Volume Shadow Copy driver" }
@{ Name = "mountmgr"; Note = "Mount Point Manager" }
@{ Name = "fvevol"; Note = "BitLocker filter (harmless if BitLocker disabled, but must boot-start if not removed)" }
@{ Name = "storahci"; Note = "Standard AHCI controller" }
@{ Name = "storvsc"; Note = "Hyper-V synthetic SCSI" }
@{ Name = "stornvme"; Note = "NVMe driver (Win10/11 name)" }
@{ Name = "nvme"; Note = "NVMe driver (legacy name)" }
@{ Name = "iaStorAC"; Note = "Intel RST AHCI" }
@{ Name = "iaStorAVC"; Note = "Intel RST VMD/AVC" }
@{ Name = "iaStorVD"; Note = "Intel VMD" }
@{ Name = "amdsata"; Note = "AMD SATA AHCI" }
@{ Name = "amdxata"; Note = "AMD AHCI filter" }
@{ Name = "msahci"; Note = "Legacy MS AHCI" }
# File system / cache (boot-critical)
@{ Name = "FileInfo"; Note = "File information FS minifilter" }
@{ Name = "FltMgr"; Note = "Filesystem Filter Manager" }
@{ Name = "Wof"; Note = "Windows Overlay Filter" }
# Networking stack
@{ Name = "Tcpip"; Note = "TCP/IP - REQUIRED" }
# @{ Name = "Tcpip6"; Note = "Disabled - IPv6 stack rarely needed for iSCSI boot, can cause 0x7B if target is IPv4-only" }
@{ Name = "Dhcp"; Note = "DHCP client - REQUIRED if using DHCP for iSCSI NIC" }
@{ Name = "NetBT"; Note = "NetBIOS over TCP/IP" }
@{ Name = "NDIS"; Note = "Network Driver Interface - REQUIRED" }
@{ Name = "ndiswan"; Note = "NDIS WAN" }
@{ Name = "ndisuio"; Note = "NDIS user mode I/O" }
@{ Name = "nsi"; Note = "Network Store Interface" }
@{ Name = "nsiproxy"; Note = "NSI proxy driver" }
@{ Name = "BFE"; Note = "Base Filtering Engine" }
@{ Name = "Afd"; Note = "Ancillary Function Driver (WinSock)" }
@{ Name = "tdx"; Note = "TDI translation driver" }
@{ Name = "netbios"; Note = "NetBIOS interface" }
@{ Name = "rdbss"; Note = "Redirected Drive Buffering Subsystem" }
# Hyper-V
@{ Name = "VMSMP"; Note = "Synthetic NIC" }
@{ Name = "VMBus"; Note = "Hyper-V VMBus backbone" }
@{ Name = "storvsp"; Note = "Storage VSP" }
@{ Name = "vmswitch"; Note = "Hyper-V virtual switch" }
@{ Name = "netvsc"; Note = "Hyper-V synthetic network adapter" }
# Intel NIC drivers
@{ Name = "e1express"; Note = "Intel PRO/1000 PCIe (NDIS6)" }
@{ Name = "e1i68x64"; Note = "Intel PRO/1000 PCIe" }
@{ Name = "e1d"; Note = "Intel I210/I217/I218/I219 (NDIS6.8)" }
@{ Name = "e1dexpress"; Note = "Intel I210/I217/I218/I219 (older naming)" }
@{ Name = "e1cexpress"; Note = "Intel 82567/82574/82583" }
@{ Name = "e1r"; Note = "Intel I210 (NDIS6.8)" }
@{ Name = "e1r68x64"; Note = "Intel I210 (NDIS6.8)" }
@{ Name = "e2express"; Note = "Intel 10GbE (older X520/X540)" }
@{ Name = "e2f"; Note = "Intel I225/I226 2.5GbE" }
@{ Name = "e2fexpress"; Note = "Intel I225/I226 2.5GbE" }
@{ Name = "i40e"; Note = "Intel XL710/X710/40GbE" }
@{ Name = "i40eb"; Note = "Intel XL710/X710/40GbE" }
@{ Name = "i219"; Note = "I219 family (alt naming)" }
@{ Name = "ixe"; Note = "Intel X550/X552/X553 10GbE" }
@{ Name = "ixgbi"; Note = "Intel 82598/82599 10GbE" }
@{ Name = "ixgbn"; Note = "Intel X540 10GbE" }
# Broadcom NIC drivers
@{ Name = "b57nd60x"; Note = "Broadcom NetXtreme" }
@{ Name = "b57nd60a"; Note = "Broadcom NetXtreme" }
@{ Name = "bxnd"; Note = "Newer Broadcom NetXtreme II" }
@{ Name = "evbd"; Note = "Broadcom 10GbE (NetXtreme-E)" }
@{ Name = "qevbda"; Note = "Broadcom 10GbE (NetXtreme-E)" }
@{ Name = "bxvbda"; Note = "Broadcom 10GbE (NetXtreme-E)" }
@{ Name = "tg3"; Note = "Broadcom Tigon3" }
# Mellanox / NVIDIA networking
@{ Name = "mlx4_core"; Note = "Mellanox ConnectX-3" }
@{ Name = "mlx4_en"; Note = "Mellanox ConnectX-3" }
@{ Name = "mlx4_bus"; Note = "Mellanox ConnectX-3 bus" }
@{ Name = "mlx4eth"; Note = "Mellanox ConnectX-3 Ethernet" }
@{ Name = "mlx4eth63"; Note = "Mellanox ConnectX-3 Ethernet (64-bit)" }
@{ Name = "mlx5"; Note = "Mellanox ConnectX-4/5/6/7/8/9" }
@{ Name = "mlx5eth"; Note = "Mellanox ConnectX-4/5/6/7/8/9 Ethernet" }
@{ Name = "mlx5_core"; Note = "Mellanox ConnectX-4/5/6/7/8/9 Ethernet" }
@{ Name = "mlx5_ib"; Note = "InfiniBand and RDMA" }
@{ Name = "mlx5_fpga"; Note = "FPGA-enabled adapters" }
@{ Name = "mlx5_vdpa"; Note = "vHost Data Path Acceleration" }
@{ Name = "ib_ipoib"; Note = "IP over InfiniBand" }
# VMware
@{ Name = "vmxnet3"; Note = "VMware vmxnet3" }
@{ Name = "vmxnet"; Note = "VMware legacy vmxnet" }
@{ Name = "pvscsi"; Note = "VMware paravirtual SCSI" }
# VirtIO (KVM/Proxmox)
@{ Name = "netkvm"; Note = "VirtIO network adapter" }
@{ Name = "viostor"; Note = "VirtIO block storage" }
@{ Name = "vioscsi"; Note = "VirtIO SCSI" }
# QEMU/Xen
@{ Name = "xennet"; Note = "Xen PV network" }
@{ Name = "xenvbd"; Note = "Xen PV block" }
# Realtek
@{ Name = "rtl8139"; Note = "Realtek 8139" }
@{ Name = "rtl8168"; Note = "Realtek GigE" }
@{ Name = "rt640x64"; Note = "Realtek GigE" }
@{ Name = "rt630x64"; Note = "Realtek 2.5GbE" }
@{ Name = "Rtnicpx64"; Note = "Realtek PCIe" }
@{ Name = "rt25cx21x64"; Note = "Realtek Gaming 2.5GbE Family Controller (RTL8125 series)" }
@{ Name = "rtf64x64"; Note = "Realtek PCIe GbE (Very common alternative name used by Dell/HP/Lenovo OEMs)" }
@{ Name = "rt620x64"; Note = "Realtek PCIe GbE (NDIS 6.20 / Windows 7 - Good for older images/WinPE)" }
@{ Name = "rtenic64"; Note = "Realtek PCIe Ethernet (Alternative service name)" }
@{ Name = "rt640x86"; Note = "Realtek PCIe GbE (32-bit Win 10)" }
@{ Name = "rt630x86"; Note = "Realtek PCIe GbE (32-bit Win 8)" }
@{ Name = "rtf64x86"; Note = "Realtek PCIe GbE (32-bit OEM)" }
@{ Name = "rt25cx21x86"; Note = "Realtek Gaming 2.5GbE (32-bit)" }
@{ Name = "rtux64"; Note = "Realtek USB GbE (RTL8152/8153 Family)" }
@{ Name = "rtu53x64"; Note = "Realtek USB 3.0 GbE (RTL8153 specifically)" }
@{ Name = "rtu56x64"; Note = "Realtek USB 2.5GbE (RTL8156 specifically)" }
# Aquantia / Marvell
@{ Name = "atlantic"; Note = "Aquantia AQC100/107/108 10GbE" }
@{ Name = "yk63x64"; Note = "Marvell Yukon 88E80xx" }
@{ Name = "yk68x64"; Note = "Marvell Yukon Optima" }
# USB-to-Ethernet adapters
@{ Name = "rndismp"; Note = "RNDIS USB networking" }
@{ Name = "rndismpx"; Note = "RNDIS USB networking (x64)" }
)
# --- Apply Start=0 and strip StartOverride ---
$applied = 0
$missing = 0
$overrides = 0
foreach ($entry in $services)
{
$serviceName = $entry.Name
$servicePath = Join-Path $servicesRoot $serviceName
if (-not (Test-Path $servicePath))
{
$missing++
continue
}
try
{
Set-ItemProperty -Path $servicePath -Name "Start" -Value 0 -Type DWord -ErrorAction Stop
Write-Host " [OK] $serviceName ($($entry.Note))"
$applied++
}
catch
{
Write-Host " [FAIL] $serviceName - $($_.Exception.Message)" -ForegroundColor Red
continue
}
# Strip StartOverride if present - some drivers (notably Intel) write StartOverride\0 = 3 which silently overrides Start on next boot.
$overridePath = Join-Path $servicePath "StartOverride"
if (Test-Path $overridePath)
{
try
{
Remove-Item -Path $overridePath -Recurse -Force -ErrorAction Stop
Write-Host " -> removed StartOverride" -ForegroundColor Yellow
$overrides++
}
catch
{
Write-Host " -> failed to remove StartOverride: $($_.Exception.Message)" -ForegroundColor Red
}
}
}
Write-Host ""
Write-Host "Summary"
Write-Host "-------"
Write-Host " Services updated: $applied"
Write-Host " Services not present: $missing"
Write-Host " StartOverride stripped: $overrides"
Write-Host ""
Write-Host "Reboot required for changes to take effect." -ForegroundColor Cyan