它的长短是:
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-Vpipe理用户界面(我设置了checkbox,点击确定或应用,closures对话框,重新打开对话框,checkbox未设置)。
我对Hyper-V和Powershell都比较陌生,所以任何指导都不胜感激。