Yes, damnit !

Since I bought a new z790 board I was experiencing problems where my Ethernet network adapter was not connected after startup, solution was to restart the adapter and everything was peachy.

This is due to a bug on Intel side, which apparently is very hard to solve (/s).

And since I am lazy engineer who doesn’t want to perform tedious tasks every day, I automated this workaround, which essentially creates a task which executes powershell command on startup, this command or script checks whether the adapter is up and if not then restarts it.

Change the path to your powershell.exe if needed and change variable AdapterName if needed, then execute this in powershell while running as admin.

Simple as that, enjoy !

# Restart Adapter when not UP (intel i225-v and i226-v issue workaround)
# Script developed by pduchnovsky
$AdapterName = "Ethernet"
$PowerShellPath = "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe"
$Argument = "-command `"Get-NetAdapter $AdapterName | ? status -ne up | Restart-NetAdapter`""
$Name = "Restart Adapter"
$Trigger = New-ScheduledTaskTrigger -AtStartup
$Action = New-ScheduledTaskAction -Execute $PowerShellPath $Argument
$Settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -ExecutionTimeLimit 0
$Principal = New-ScheduledTaskPrincipal -UserID "NT AUTHORITY\SYSTEM" -LogonType ServiceAccount -RunLevel Highest
Register-ScheduledTask -TaskName $Name -Trigger $Trigger -Action $Action -Settings $Settings -Principal $Principal