Skip to content

Latest commit

 

History

History
108 lines (79 loc) · 3.3 KB

New-CsCustomPolicyPackage.md

File metadata and controls

108 lines (79 loc) · 3.3 KB
external help file Module Name title author ms.author manager online version schema
Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml
MicrosoftTeams
New-CsCustomPolicyPackage
sunguchuan
gucsun
dasosby
2.0.0

New-CsCustomPolicyPackage

SYNOPSIS

Note: This cmdlet is currently in private preview.

This cmdlet creates a custom policy package.

SYNTAX

New-CsCustomPolicyPackage -Identity <String> -PolicyList <String[]> [-Description <String>] [<CommonParameters>]

DESCRIPTION

This cmdlet creates a custom policy package. It allows the admin to create their own policy packages for the tenant. For more information on policy packages and the policy types available, please review https://learn.microsoft.com/MicrosoftTeams/manage-policy-packages.

EXAMPLES

Example 1

PS C:\> New-CsCustomPolicyPackage -Identity "MyPackage" -PolicyList "TeamsMessagingPolicy, MyMessagingPolicy"

Creates a custom package named "MyPackage" with one policy in the package: a messaging policy of name "MyMessagingPolicy".

Example 2

PS C:\> New-CsCustomPolicyPackage -Identity "MyPackage" -PolicyList "TeamsMessagingPolicy, MyMessagingPolicy", "TeamsMeetingPolicy, MyMeetingPolicy" -Description "My package"

Creates a custom package named "MyPackage" with description "My package" and two policies in the package: a messaging policy of name "MyMessagingPolicy" and a meeting policy of name "MyMeetingPolicy".

PARAMETERS

-Identity

The name of the custom package.

Type: String
Parameter Sets: (All)
Aliases:
Applicable: Microsoft Teams
Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PolicyList

A list of one or more policies to be added in the package. To specify the policy list, follow this format: "<PolicyType>, <PolicyName>". Delimiters of ' ', '.', ':', '\t' are also acceptable. Supported policy types are listed here. To get the list of available policy names on your tenant, please use the SkypeForBusiness module and refer to cmdlets such as Get-CsTeamsMeetingPolicy and Get-CsTeamsMessagingPolicy.

Type: String[]
Parameter Sets: (All)
Aliases:
Applicable: Microsoft Teams
Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Description

The description of the custom package.

Type: String
Parameter Sets: (All)
Aliases:
Applicable: Microsoft Teams
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Update-CsCustomPolicyPackage

Remove-CsCustomPolicyPackage