Commands › Microsoft Teams

Get-CsTeamsTargetingPolicy

Microsoft Teams MicrosoftTeams Get-*

The Get-CsTeamsTargetingPolicy cmdlet enables you to return information about all the Tenant tag setting policies that have been configured for use in your organization.

Quick start script

# Get-CsTeamsTargetingPolicy — 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
Get-CsTeamsTargetingPolicy | Format-List

# 3. Export for evidence / drift tracking
Get-CsTeamsTargetingPolicy | Export-Clixml .\CsTeamsTargetingPolicy-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

Identity (Default)

Get-CsTeamsTargetingPolicy [[-Identity] <String>] [-MsftInternalProcessingMode <String>] [<CommonParameters>]

Filter

Get-CsTeamsTargetingPolicy [-MsftInternalProcessingMode <String>] [-Filter <String>] [<CommonParameters>]

Parameters (3)

ParameterTypeRequiredWhat it controls
-Filter String Enables you to use wildcard characters when indicating the policy (or policies) to be returned.
-Identity String Unique identifier of the policy to be returned. To refer to the global policy, use this syntax: -Identity global. To refer to a per-tenant policy, use syntax similar to this: -Identity SalesDepartmentPolicy. If this...
-MsftInternalProcessingMode String For Internal use only.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.