Get-NetLbfoTeam
Get-NetLbfoTeam
Retrieves a list of NIC teams on the system, as specified by the input parameters.
Sintaxis
Parameter Set: ByName
Get-NetLbfoTeam [[-Name] <String[]> ] [-AsJob] [-CimSession <CimSession[]> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByMemberOfTheTeam
Get-NetLbfoTeam [-AsJob] [-CimSession <CimSession[]> ] [-MemberOfTheTeam <CimInstance> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Parameter Set: ByTeamNicForTheTeam
Get-NetLbfoTeam [-AsJob] [-CimSession <CimSession[]> ] [-TeamNicForTheTeam <CimInstance> ] [-ThrottleLimit <Int32> ] [ <CommonParameters>]
Descripción detallada
The Get-NetLbfoTeam cmdlet retrieves the list of all available NIC teams on the system.
You can retrieve the list of NIC teams by specifying the name or name pattern of the team. You can also use Get-NetLbfoTeam to retrieve the team associated with a team interface or a team member (network adapter).
Parámetros
-AsJob
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-CimSession<CimSession[]>
Ejecuta el cmdlet en una sesión remota o en un equipo remoto. Escriba un nombre de equipo o un objeto de sesión, como la salida de un cmdlet New-CimSession o Get-CimSession. El valor predeterminado es la sesión actual en el equipo local.
Alias |
Session |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
-MemberOfTheTeam<CimInstance>
Specifies the member network adapter name to retrieve the associated NIC team.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
-Name<String[]>
Specifies the name (or name wildcard pattern) of the NIC team for which to retrieve information.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
1 |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByPropertyName) |
¿Aceptar caracteres comodín? |
false |
-TeamNicForTheTeam<CimInstance>
Specifies the team interface to retrieve the associated NIC team.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
True (ByValue) |
¿Aceptar caracteres comodín? |
false |
-ThrottleLimit<Int32>
Especifica el número máximo de operaciones simultáneas que se pueden establecer para ejecutar el cmdlet. Si se omite este parámetro o es especifica un valor de 0
, Windows PowerShell ® calcula un límite óptimo para el cmdlet en función del número de cmdlets de CIM que se estén ejecutando en el equipo. El límite solo se aplica al cmdlet actual, no a la sesión ni al equipo.
Alias |
ninguno |
¿Requerido? |
false |
¿Posición? |
named |
Valor predeterminado |
ninguno |
¿Aceptar canalización? |
false |
¿Aceptar caracteres comodín? |
false |
<CommonParameters>
Este cmdlet admite los siguientes parámetros comunes: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer y -OutVariable. Para obtener más información, consulte about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Entradas
El tipo de entrada es el tipo de los objetos que se pueden canalizar al cmdlet.
None
This cmdlet takes no input objects.
Salidas
El tipo de resultado es el tipo de objetos que emite el cmdlet.
MSFT_NetLbfoTeam
This cmdlet returns an array of MSFT_NetLbfoTeam objects containing the teams that match the query.
Ejemplos
Example 1: Get a specific team
This command retrieves a NIC team named Team1.
PS C:\> Get-NetLbfoTeam –Name Team1
Example 2: Get the list of all teams whose name starts with ‘T’ and then remove
This command retrieves the list of teams whose name starts with T using Get-NetLbfoTeam. A pipeline operator (|) sends all the teams to Remove-NetLbfoTeam which removes them.
PS C:\> Get-NetLbfoTeam –Name T*| Remove-NetLbfoTeam
Example 3: Get the team associated with a particular member network adapter
This command retrieves the NIC team associated with a particular member network adapter named NIC1 using Get-NetLbfoTeam.
PS C:\> Get-NetLbfoTeamMember NIC1 | Get-NetLbfoTeam
Or
PS C:\> $mObj = Get-NetLbfoTeamMember NIC1
PS C:\> Get-NetLbfoTeam –MemberOfTheTeam $mObj
Example 4: Get the team associated with a particular team interface
This command retrieves the NIC team associated with a particular team interface named Team1 – VLAN 42 using Get-NetLbfoTeam.
PS C:\> Get-NetLbfoTeamNic 'Team1 – VLAN 42' | Get-NetLbfoTeam
Or
PS C:\> $tNicObj = Get-NetLbfoTeamNic 'Team1 – VLAN 42'
PS C:\> Get-NetLbfoTeam –TeamNicForTheTeam $tNicObj