停用 Hyper-V 可延伸交換器擴充功能
Disable-VMSwitchExtension PowerShell Cmdlet 會在可延伸交換器的特定實例上停用擴充功能。
Disable-VMSwitchExtension Cmdlet 使用下列語法:
Disable-VMSwitchExtension [-VMSwitchExtensionName] <string[]> [-ComputerName <string[]>] [<CommonParameters>]
Disable-VMSwitchExtension [-VMSwitchExtensionName] <string[]> [-VMSwitchName] <string[]> [-ComputerName
<string[]>] [<CommonParameters>]
Disable-VMSwitchExtension [-VMSwitchExtensionName] <string[]> [-VMSwitch] <VMSwitch[]> [-ComputerName <string[]>]
[<CommonParameters>]
Disable-VMSwitchExtension [-VMSwitchExtension] <VMSwitchExtension[]> [-ComputerName <string[]>]
[<CommonParameters>]
下列範例示範如何使用 Disable-VMSwitchExtension Cmdlet。
PS C:\Windows\system32> Disable-VMSwitchExtension "Switch Extensibility Test Extension 1" PrivateNetwork
PS C:\Windows\system32> Get-VMSwitchExtension PrivateNetwork "Switch Extensibility Test Extension 1" | fl -property @("Name","ExtensionType", "SwitchName","Enabled")
Name : Switch Extensibility Test Extension 1
ExtensionType : Filter
SwitchName : PrivateNetwork
Enabled : False