Compartir a través de


Deshabilitación de extensiones de conmutador extensible de Hyper-V

El cmdlet Disable-VMSwitchExtension de PowerShell deshabilita una extensión en una instancia específica de un conmutador extensible.

El cmdlet Disable-VMSwitchExtension usa la sintaxis siguiente:

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>]

A continuación se muestra un ejemplo de cómo usar el cmdlet Disable-VMSwitchExtension .

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

Disable-VMSwitchExtension

Get-VMSwitchExtension

Msvm_EthernetSwitchExtension