Skip to main content
Get Team Channel
Updated this week

Command

Get-TeamChannel

Description

The command to get team channels from a team.

Index

Examples

Get all channels from a team

$tenant = Connect-Tenant -Domain tenantDomain
$team = Get-Team -Name "MyTeam" -Tenant $tenant
$channels = Get-TeamChannel -Team $team

Get a channel by name

$tenant = Connect-Tenant -Domain tenantDomain
$team = Get-Team -Name "MyTeam" -Tenant $tenant
$channel = Get-TeamChannel -Team $team -Name General

Note: You must always use the English term for the General channel with the -Name parameter, see Parameters below for more information.

Syntax

Get-TeamChannel-Team <Team>
[-Name <String[]>]

Parameters

-Name <String[]>

Specifies the name of the channel. Even though the General channel can be shown in a different language, you must always use the English term for the General channel with the -Name parameter.

Required?

False

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

True

Parameter set name

(All)

Aliases

None

-Team <Team>

Specifies the team to copy.

Required?

True

Default value

None

Accept pipeline input?

False

Accept wildcard characters?

False

Parameter set name

(All)

Aliases

None

Did this answer your question?