Get-CsPolicyPackage
This cmdlet supports retrieving all the policy packages available on a tenant.
Syntax
Get-CsPolicyPackage
[[-Identity] <String>]
[<CommonParameters>]
Description
This cmdlet supports retrieving all the policy packages available on a tenant. Provide the identity of a specific policy package to retrieve its definition, including details on the policies applied with the package. For more information on policy packages, please review https://video2.skills-academy.com/MicrosoftTeams/manage-policy-packages.
Examples
Example 1
PS C:\> Get-CsPolicyPackage
Returns all policy packages available on the tenant.
Example 2
PS C:\> Get-CsPolicyPackage -Identity Education_PrimaryStudent
Returns only the Education_PrimaryStudent policy package.
Example 3
PS C:\> $a = Get-CsPolicyPackage -Identity Education_PrimaryStudent
PS C:\> $a.Policies
# In module versions 1.1.9+
PS C:\> $a = Get-CsPolicyPackage -Identity Education_PrimaryStudent
PS C:\> $a.Policies.AdditionalProperties
Key Value
--- -----
TeamsMessagingPolicy {[Identity, Education_PrimaryStudent], [Description, This is an Education_PrimarySt...
TeamsMeetingPolicy {[Identity, Education_PrimaryStudent], [Description, This is an Education_PrimarySt...
TeamsAppSetupPolicy {[Identity, Education_PrimaryStudent], [Description, This is an Education_PrimarySt...
TeamsCallingPolicy {[Identity, Education_PrimaryStudent], [Description, This is an Education_PrimarySt...
TeamsMeetingBroadcastPolicy {[Identity, Education_PrimaryStudent], [Description, This is an Education_PrimarySt...
Returns the set of policies in the Education_PrimaryStudent policy package.
Parameters
-Identity
The name of a specific policy package. All possible policy package names can be found by running Get-CsPolicyPackage.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | Microsoft Teams |