Commands › Microsoft Teams
Find-CsGroup
Search groups.
Quick start script
# Find-CsGroup — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId
# 2. Run and inspect
Find-CsGroup -SearchQuery <String> | Format-List
# 3. Export for evidence / drift tracking
Find-CsGroup | Export-Clixml .\CsGroup-$(Get-Date -Format yyyyMMdd).xml
Syntax
Find-CsGroup [-Tenant <Guid>] -SearchQuery <String> [-MaxResults <UInt32>] [-ExactMatchOnly <Boolean>] [-MailEnabledOnly <Boolean>]
[-Force] [<CommonParameters>]
Parameters (6)
Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.