PowerShell Logo Small

Enable-NetworkSwitchFeature



This is the built-in help made by Microsoft for the command 'Enable-NetworkSwitchFeature', 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

Enables features of a network switch.

SYNTAX


Enable-NetworkSwitchFeature [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable [<System.String>]] -CimSession
<CimSession> -FeatureName <Int32> [<CommonParameters>]
Enable-NetworkSwitchFeature [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable [<System.String>]] -CimSession
<CimSession> -Name <String> [<CommonParameters>]
Enable-NetworkSwitchFeature [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable [<System.String>]] -CimSession
<CimSession> -InstanceId <String> [<CommonParameters>]
Enable-NetworkSwitchFeature [-InformationAction {SilentlyContinue | Stop | Continue | Inquire | Ignore | Suspend}] [-InformationVariable [<System.String>]] -CimSession
<CimSession> [<CommonParameters>]



Search powershellhelp.space

DESCRIPTION


The Enable-NetworkSwitchFeature cmdlet enables specified features of a network switch.



<

RELATED LINKS

Disable-NetworkSwitchFeature
Get-NetworkSwitchFeature

REMARKS

<

Examples


Example 1: Enable a feature by using its name

PS C:\>$Session = New-CimSession -ComputerName "NetworkSwitch08"
PS C:\> Enable-NetworkSwitchFeature -CimSession $Session -Name "SSH"



The first command creates a CimSession for a network switch, and then stores it in the $Session variable. For more information about CimSession objects, type Get-Help
New-CimSession.

The second command enables the feature named SSH for the switch NetworkSwitch08 by using the $Session object.






Example 2: Enable a feature by using its instance ID

PS C:\>Enable-NetworkSwitchFeature -CimSession $Session -InstanceID "Contoso:Feature:2"



This command enables a feature by using the instance ID to identify it. The command includes a CimSession, similar to the first example.