You need to unset Allow the computer to turn off this device to save power in the Power Management tab if the device support it.
example
in case there is no Power Management tab, dont worry, you know, is Windows
create/alter a DWORD value
HKLM\System\CurrentControlSet\Control\Power\PlatformAoAcOverride
with the value 0
Reboot to have effect.
source
result : not working as also Microsoft declaring :
On further investigation, someone shared :
xxxxxxxxxxx can be found on device details
if needed, here is a powershell script :
and ensure that the PnPCapabilities (that exists only on 1-2 subkeys), is with value DWORD (DEC) 24, no needed to create the value if not exist!!
if needed powershell [2] scripts.
example

in case there is no Power Management tab, dont worry, you know, is Windows
create/alter a DWORD value
HKLM\System\CurrentControlSet\Control\Power\PlatformAoAcOverride
with the value 0
Reboot to have effect.
source
result : not working as also Microsoft declaring :
The Allow the computer to turn off this device to save power setting controls how the network card is handled when the computer enters sleep. This setting can be used if a driver misrepresents how it handles sleep states.
On further investigation, someone shared :
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\xxxxxxxxxxx
loop all subkeys by checking the key DriverDesc
to match your adapter name >> then for each of them turn the EnableExtraPowerSaving to 0.
xxxxxxxxxxx can be found on device details

if needed, here is a powershell script :
JavaScript:
Set-Location "HKLM:\SYSTEM\CurrentControlSet\Control\Class\xxxxxxxxxxx"
$adapter = Get-ChildItem -ErrorAction Ignore | Select-Object Name | Split-Path -Leaf
ForEach($Device in $adapter){
$DeviceName = $Device.SubString(0,($Device.Length -1))
$DevicePath = "HKLM:\SYSTEM\CurrentControlSet\Control\Class\xxxxxxxxxxx\$DeviceName"
$CurrentDevice = Get-ItemProperty -Path $DevicePath
If ($CurrentDevice.DriverDesc -eq "your adapter name"){
Set-ItemProperty -path $DevicePath -name "EnableExtraPowerSaving" -Value 0
Write-Host "Device found"
}
}
and ensure that the PnPCapabilities (that exists only on 1-2 subkeys), is with value DWORD (DEC) 24, no needed to create the value if not exist!!
set PnPCapabilities to DEC 24 (HEX 18)
ref - https://learn.microsoft.com/en-us/t...etworking/power-management-on-network-adapter
if needed powershell [2] scripts.