Add-NetLbfoTeamMember
Add-NetLbfoTeamMember
Adds a new member (network adapter) to a specified NIC team.
Syntax
Parameter Set: AddMember0
Add-NetLbfoTeamMember [-Name] <WildcardPattern> [-Team] <String> [[-AdministrativeMode] <AdminModes> ] [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Detailed Description
The Add-NetLbfoTeamMember cmdlet adds a new network adapter as a member to the specified team. You can use the AdministrativeMode parameter to specify the initial role of the new team member.
Parameters
-AdministrativeMode<AdminModes>
Specifies the initial role of the new member (network adapter).
You can specify one of the following two status options:
Active: Allows the team member to participate in the NIC team. By default, the initial role of the team member is Active.
Standby: Places the member in a standby state where it does not participate in the team. The team member will be automatically moved to Active state if any other member of the team fails.
At most one member in a team can be in Standby mode.
Aliases |
am |
Required? |
false |
Position? |
3 |
Default Value |
Active |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-AsJob
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-CimSession<CimSession[]>
Runs the cmdlet in a remote session or on a remote computer. Enter a computer name or a session object, such as the output of a New-CimSession or Get-CimSession cmdlet. The default is the current session on the local computer.
Aliases |
none |
Required? |
false |
Position? |
named |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-Name<WildcardPattern>
Specifies the name (Interface Alias or Connection Name) of the network adapter to add.
Aliases |
ifAlias, InterfaceAlias |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
true |
-Team<String>
Specifies the name of the NIC team to which to add the new network adapter.
Aliases |
none |
Required? |
true |
Position? |
2 |
Default Value |
none |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
-ThrottleLimit<Int32>
Specifies the maximum number of concurrent operations that can be established to run the cmdlet. If this parameter is omitted or a value of 0
is entered, then Windows PowerShell® calculates an optimum throttle limit for the cmdlet based on the number of CIM cmdlets that are running on the computer. The throttle limit applies only to the current cmdlet, not to the session or to the computer.
Aliases |
none |
Required? |
false |
Position? |
named |
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.
None
This cmdlet takes no input objects.
Outputs
The output type is the type of the objects that the cmdlet emits.
MSFT_NetLbfoTeamMember
This cmdlet returns an array of MSFT_NetLbfoTeamMember objects consisting of the newly added member network adapter objects to the team.
Examples
Example 1: Add a new team member
This command adds a new member named NIC1 to the specified team named Team1.
PS C:\> Add-NetLbfoTeamMember -Name NIC1 -Team Team1
Example 2: Add a new team member with initial status
This command adds a new member named NIC2 to the specified team named Team2 with the initial status Standby.
PS C:\> Add-NetLbfoTeamMember -Name NIC2 -Team Team2 -AdministrativeMode Standby
Example 3: Add new team members using wildcard pattern
This command adds new members whose name starts with NIC to the specified team named Team1.
PS C:\> Add-NetLbfoTeamMember –Name NIC* -Team Team1