
简而言之:
PS C:\WINDOWS\system32> Get-VMSwitch vSwitch
Name SwitchType NetAdapterInterfaceDescription
---- ---------- ------------------------------
vSwitch External Intel(R) Ethernet Connection (2) I219-V
PS C:\WINDOWS\system32> (Get-VMSwitch vSwitch).Extensions
Id : E7C3B2F0-F3C5-48DF-AF2B-10FED6D72E7A
Name : Microsoft Windows Filtering Platform
Vendor : Microsoft
Version : 10.0.14393.0
ExtensionType : Filter
ParentExtensionId :
ParentExtensionName :
SwitchId : 8082228e-905b-4967-bee9-e19deb3e2fc2
SwitchName : vSwitch
Enabled : False
Running : True
CimSession : CimSession: .
ComputerName : EBBOX
IsDeleted : False
Id : EA24CD6C-D17A-4348-9190-09F0D5BE83DD
Name : Microsoft NDIS Capture
Vendor : Microsoft
Version : 10.0.14393.0
ExtensionType : Monitoring
ParentExtensionId :
ParentExtensionName :
SwitchId : 8082228e-905b-4967-bee9-e19deb3e2fc2
SwitchName : vSwitch
Enabled : False
Running : True
CimSession : CimSession: .
ComputerName : EBBOX
IsDeleted : False
PS C:\WINDOWS\system32> Enable-VMSwitchExtension -Name "Microsoft NDIS Capture" -VMSwitchName vSwitch | select-object Enabled
Enabled
-------
True
PS C:\WINDOWS\system32> Get-VMSwitchExtension vSwitch -Name "Microsoft NDIS Capture" | Select-Object Enabled
Enabled
-------
False
换句话说,我无法启用此 VMSwitchExtension,或者它会不断自行禁用。这也发生在虚拟交换机的 Hyper-V 管理 UI 中(我设置了复选框,点击确定或应用,关闭对话框,重新打开对话框,复选框未设置)。
我对 Hyper-V 和 Powershell 都比较不熟悉,因此如果能得到任何指导我将不胜感激。