31 lines
1.5 KiB
PowerShell
31 lines
1.5 KiB
PowerShell
# migrate-to-wifi.ps1 - No-op as of 2026-04-24.
|
|
#
|
|
# Previously this disabled all wired NICs at first logon to keep PPKG /
|
|
# Intune enrollment routing internet traffic via WiFi. The wired NIC was
|
|
# preferred by Windows because the PXE dnsmasq was handing out a default
|
|
# gateway (dhcp-option=3,10.9.100.1) which Windows installed as a default
|
|
# route, and the lower interface metric of wired beat WiFi. Internet-bound
|
|
# traffic then black-holed at 10.9.100.1 (the PXE server, which doesn't
|
|
# forward).
|
|
#
|
|
# That root cause was fixed by removing the dhcp-option=3 and =6 lines
|
|
# from /etc/dnsmasq.conf on the PXE server. Without an advertised gateway
|
|
# on the PXE side, Windows can't add a default route via wired, so all
|
|
# internet traffic uses WiFi by default and the wired NIC stays harmless
|
|
# for same-subnet PXE/SMB traffic to 10.9.100.1.
|
|
#
|
|
# Side effect of the original behavior was an eDNC race: eDNC autostart
|
|
# would fire while the wired NIC was still disabled and hit WSAEINVAL
|
|
# (Winsock 10022) trying to bind to a non-existent local IP, looping its
|
|
# retry timer until a SYSTEM task re-enabled the NIC after SFLD creds
|
|
# landed (often ~30+ min later). Keeping the NIC up the whole time
|
|
# eliminates that race.
|
|
#
|
|
# Kept as a no-op file (instead of removed) so the unattend XML's Order 5
|
|
# RunSynchronousCommand entry does not need to be re-numbered. If the
|
|
# dhcp-option lines ever come back, this can be reverted to the disable
|
|
# logic by restoring from git.
|
|
|
|
Write-Host 'migrate-to-wifi.ps1: no-op (wired NIC kept enabled).'
|
|
exit 0
|