Disable-VMSwitchExtension

Disable-VMSwitchExtension

Disables one or more extensions on one or more virtual switches.

Syntax

Parameter Set: ExtensionName
Disable-VMSwitchExtension [-Name] <String[]> [-ComputerName <String[]> ] [ <CommonParameters>]

Parameter Set: ExtensionNameSwitchName
Disable-VMSwitchExtension [-Name] <String[]> [-VMSwitchName] <String[]> [-ComputerName <String[]> ] [ <CommonParameters>]

Parameter Set: ExtensionNameSwitchObject
Disable-VMSwitchExtension [-Name] <String[]> [-VMSwitch] <VMSwitch[]> [-ComputerName <String[]> ] [ <CommonParameters>]

Parameter Set: ExtensionObject
Disable-VMSwitchExtension [-VMSwitchExtension] <VMSwitchExtension[]> [-ComputerName <String[]> ] [ <CommonParameters>]

Detailed Description

The Disable-VMSwitchExtension cmdlet disables one or more extensions on one or more virtual switches. You can run Get-VMSystemSwitchExtension to enumerate the virtual switch extensions installed on the system.

Parameters

-ComputerName<String[]>

Specifies one or more Hyper-V hosts on which the extension is to be disabled. NetBIOS names, IP addresses, and fully-qualified domain names are allowable. The default is the local computer — use “localhost” or a dot (“.”) to specify the local computer explicitly.

Aliases

none

Required?

false

Position?

named

Default Value

.

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-VMSwitch<VMSwitch[]>

Specifies the virtual switch on which the extension is to be disabled.

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-VMSwitchExtension<VMSwitchExtension[]>

Specifies the extension to be disabled.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

True (ByValue)

Accept Wildcard Characters?

false

-VMSwitchName<String[]>

Specifies the name of the switch on which the extension is to be disabled.

Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String[]>

Specifies the name of the extension to be disabled.

Aliases

none

Required?

true

Position?

1

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see    about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

  • Microsoft.Virtualization.PowerShell.NetworkExtension

Examples

Example 1

Disables WFP (“Microsoft Windows Filtering Platform”) on virtual switch Internal Switch.

PS C:\> Disable-VMSwitchExtension –VMSwitchName “Internal Switch” –Name “Microsoft Windows Filtering Platform”