有人知道 2016-core 中“仅允许魔术包唤醒这台计算机”设置移到了哪里吗?
这个 2016 核心服务器可以通过连续 ping 保持唤醒状态,或者如果我让它暂停,它可以被 Magic Packet 唤醒,但不会通过 ping 或任何其他网络数据包唤醒。
在 Server 2012 设备管理器的 NIC 上,电源管理选项卡下有三个复选框:
1). "Allow the computer to turm off this device to save power"
2). "Allow this device to wake the computer"
3). "Only allow a magic packet to wake this computer"
我已经确定这些存储在注册表配置单元中:HKLM\System\CCS\Control\Class{4D36e972-E325-11CE-BFC1...}\nnnn\PnPCapabilities (DWord)
在哪里:
24 - 1=off, 2=off, 3=off
16 - 1=on, 2=off, 3=off
0 - 1=on, 2=on, 3=off
256 - 1=on, 2=on, 3=on
我怀疑这个设置是默认启用的,如何在 Server-core 中禁用它?
答案1
Set-NetAdapterAdvancedProperty -Name "Ethernet" -DisplayName "Wake on magic packet" -DisplayValue "Disabled"
要查看当前值:
Get-NetAdapterAdvancedProperty -Name "*"