Get-MSTTeamChannel-Html
Teams: HTML report of channels for a team
#Requires -Version 5.1
[CmdletBinding()]
Param(
[Parameter(Mandatory = $true)]
[string]$GroupId
)
Process {
try {
[hashtable]$cmdArgs = @{'ErrorAction' = 'Stop'; 'GroupId' = $GroupId}
$result = Get-TeamChannel @cmdArgs | Select-Object DisplayName, Description, Id
if ($null -eq $result -or $result.Count -eq 0) {
Write-Output "No channels found"
return
}
Write-Output ($result | ConvertTo-Html -Fragment)
}
catch { throw }
}GroupId of the team