PowerShell Logo Small

Add-VMSwitchExtensionPortFeature



This is the built-in help made by Microsoft for the command 'Add-VMSwitchExtensionPortFeature', in PowerShell version 5 - as retrieved from Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.

For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.

SYNOPSIS

Adds a feature to a virtual network adapter.

SYNTAX


Add-VMSwitchExtensionPortFeature [-VMName] <String[]> [-ComputerName <String[]>] [-Passthru] [-VMNetworkAdapterName <String>] -VMSwitchExtensionFeature
<VMSwitchExtensionPortFeature[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Add-VMSwitchExtensionPortFeature [-ComputerName <String[]>] [-Passthru] [-VMNetworkAdapterName <String>] -ManagementOS -VMSwitchExtensionFeature
<VMSwitchExtensionPortFeature[]> [-Confirm] [-WhatIf] [<CommonParameters>]
Add-VMSwitchExtensionPortFeature [-SwitchName] <String> [-ComputerName <String[]>] [-Passthru] -ExternalPort -VMSwitchExtensionFeature <VMSwitchExtensionPortFeature[]>
[-Confirm] [-WhatIf] [<CommonParameters>]
Add-VMSwitchExtensionPortFeature [-VM] <VirtualMachine[]> [-Passthru] [-VMNetworkAdapterName <String>] -VMSwitchExtensionFeature <VMSwitchExtensionPortFeature[]> [-Confirm]
[-WhatIf] [<CommonParameters>]
Add-VMSwitchExtensionPortFeature [-VMNetworkAdapter] <VMNetworkAdapterBase[]> [-Passthru] -VMSwitchExtensionFeature <VMSwitchExtensionPortFeature[]> [-Confirm] [-WhatIf]
[<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Add-VMSwitchExtensionPortFeature cmdlet adds a feature supported by a virtual switch extension to a virtual machine network adapter. This cmdlet also configures built-in
virtual switch features.



<

RELATED LINKS


Online Version: http://go.microsoft.com/fwlink/?LinkID=306818

REMARKS

<

Examples


Example 1

PS C:\>$feature = Get-VMSystemSwitchExtensionPortFeature -FeatureName "Ethernet Switch Port Security Settings"
PS C:\>$feature.SettingData.EnableDhcpGuard = $true
PS C:\>$feature.SettingData.EnableRouterGuard = $true
PS C:\>Add-VMSwitchExtensionPortFeature -VMName VM2 -VMSwitchExtensionFeature $feature



Adds a feature to virtual machine VM2. The feature here is a port security feature supported by the extension Microsoft Virtual Ethernet Switch Native Extension.