Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

Enable-VMSwitchExtension

Windows Server 2012 R2 and Windows 8.1

Updated: March 3, 2014

Applies To: Windows 8.1, Windows PowerShell 4.0, Windows Server 2012 R2

Enable-VMSwitchExtension

Enables one or more extensions on one or more switches.

Syntax

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

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

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

Parameter Set: ExtensionObject
Enable-VMSwitchExtension [-VMSwitchExtension] <VMSwitchExtension[]> [ <CommonParameters>]




Detailed Description

The Enable-VMSwitchExtension cmdlet enables one or more extensions on one or more switches. You can use the Get-VMSystemSwitchExtension cmdlet to enumerate the virtual switch extensions installed on the system.

Parameters

-ComputerName<String[]>

Specifies one or more Hyper-V hosts on which an extension is to be enabled. 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

PSComputerName

Required?

false

Position?

named

Default Value

.

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-VMSwitch<VMSwitch[]>

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


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 enabled.


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 enabled.


Aliases

none

Required?

true

Position?

2

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Name<String[]>

Specifies the name of the network extension to be enabled.


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.

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.HyperV.PowerShell.NetworkExtension

Examples

Example 1

Enables WFP (“Microsoft Windows Filtering Platform”) on a virtual switch named External.


PS C:\> Enable-VMSwitchExtension –VMSwitchName External –Name "Microsoft Windows Filtering Platform"

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.