Get-VETChannel

Short Description

Returns Microsoft Teams team channels.

Applies to

Veeam Backup for Microsoft 365

Product Edition: Community, Standard, Enterprise, Enterprise Plus, Veeam Universal License

Syntax

Get-VETChannel -Team <VETTeam> [-DisplayName <string[]>] [<CommonParameters>]

Detailed Description

This cmdlet returns an array of channels from the specified Microsoft Teams team.

Parameters

Parameter

Description

Type

Required

Position

Accept Pipeline Input

Team

Specifies a Microsoft Teams team. The cmdlet will return an array of channels from this team.

Accepts the VETTeam object. To get this object, run the Get-VETTeam cmdlet.

True

0

True (ByValue)

DisplayName

Specifies a display name of a Microsoft Teams channel. The cmdlet will return an array of channels with this name.

String[]

False

1

False

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Output Object

The cmdlet returns the VETChannel object that contains Microsoft Teams channels.

Example

Getting Microsoft Teams Channels

This example shows how to get the General channel from the IT team of the ABC Microsoft Teams organization added to Veeam Backup for Microsoft 365.

$session = Get-VBOTeamsItemRestoreSession

$org = Get-VETOrganization -Session $session -Name "ABC*"

$team = Get-VETTeam -Organization $org -DisplayName "IT"

Get-VETChannel -Team $team -DisplayName "General"

Perform the following steps:

  1. Run the Get-VBOTeamsItemRestoreSession cmdlet. Save the result to the $session variable.
  2. Run the Get-VETOrganization cmdlet. Set the $session variable as the Session parameter value. Specify the Name parameter value. Use the * wildcard character to substitute the timestamp. Save the result to the $org variable.
  3. Run the Get-VETTeam cmdlet. Set the $org variable as the Organization parameter value. Specify the DisplayName parameter value. Save the result to the $team variable.
  4. Run the Get-VETChannel cmdlet. Set the $team variable as the Team parameter value. Specify the DisplayName parameter value.

Related Commands

Page updated 9/29/2023

Page content applies to build 12.1.1.56