Commands › Microsoft Teams

Get-CsPolicyPackage

Microsoft Teams MicrosoftTeams Get-*

This cmdlet supports retrieving all the policy packages available on a tenant.

Quick start script

# Get-CsPolicyPackage — 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-CsPolicyPackage -InputObject <IConfigApiBasedCmdletsIdentity> | Format-List

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

Syntax

Get-CsPolicyPackage [[-Identity] <String>] -InputObject <IConfigApiBasedCmdletsIdentity> [<CommonParameters>]

Parameters (2)

ParameterTypeRequiredWhat it controls
-Identity String The name of a specific policy package. All possible policy package names can be found by running Get-CsPolicyPackage.
-InputObject IConfigApiBasedCmdletsIdentity yes The identity parameter.

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