|
| 1 | +--- |
| 2 | +external help file: Microsoft.TeamsCmdlets.PowerShell.Custom.dll-Help.xml |
| 3 | +Module Name: MicrosoftTeams |
| 4 | +title: New-CsCustomPolicyPackage |
| 5 | +author: sunguchuan |
| 6 | +ms.author: gucsun |
| 7 | +manager: amitar |
| 8 | +online version: https://docs.microsoft.com/powershell/module/teams/new-CsCustomPolicyPackage |
| 9 | +schema: 2.0.0 |
| 10 | +--- |
| 11 | + |
| 12 | +# New-CsCustomPolicyPackage |
| 13 | + |
| 14 | +## SYNOPSIS |
| 15 | +This cmdlet submits an operation that creates a custom policy package with custom package name, description and a list of policies. |
| 16 | + |
| 17 | +## SYNTAX |
| 18 | + |
| 19 | +``` |
| 20 | +New-CsCustomPolicyPackage -Identity <String> -PolicyList <String[]> [-Description <String>] [<CommonParameters>] |
| 21 | +``` |
| 22 | + |
| 23 | +## DESCRIPTION |
| 24 | + |
| 25 | +This cmdlet submits an operation that creates a custom policy package. It allows the user to create their own policy package. For more information on policy packages and the policy types available, please review https://docs.microsoft.com/MicrosoftTeams/manage-policy-packages. |
| 26 | + |
| 27 | +## EXAMPLES |
| 28 | + |
| 29 | +### Example 1 |
| 30 | +```powershell |
| 31 | +PS C:\> New-CsCustomPolicyPackage -Identity myCustomPackage -PolicyList "TeamsMeetingPolicy, Education_Teacher" , "TeamsMessagingPolicy, Firstline_Manager" -Description "My first custom package" |
| 32 | +``` |
| 33 | + |
| 34 | +Creates a custom package named "myCustomPackage" with description "My first custom package" and two policies included: TeamsMeeting policy named "Education_Teacher" and TeamsMessaging policy named "Firstline_Manager". |
| 35 | + |
| 36 | +### Example 2 |
| 37 | +```powershell |
| 38 | +PS C:\> New-CsCustomPolicyPackage -Identity myCustomPackage -PolicyList "TeamsMeetingPolicy, Education_Teacher" , "TeamsMessagingPolicy, Firstline_Manager" |
| 39 | +``` |
| 40 | + |
| 41 | +Creates a custom package named "myCustomPackage" with two policies included: TeamsMeeting policy named "Education_Teacher" and TeamsMessaging policy named "Firstline_Manager". |
| 42 | + |
| 43 | +## PARAMETERS |
| 44 | + |
| 45 | +### -Identity |
| 46 | + |
| 47 | +The name of the custom package. |
| 48 | + |
| 49 | +```yaml |
| 50 | +Type: String |
| 51 | +Parameter Sets: (All) |
| 52 | +Aliases: |
| 53 | +Applicable: Microsoft Teams |
| 54 | +Required: True |
| 55 | +Position: 0 |
| 56 | +Default value: None |
| 57 | +Accept pipeline input: False |
| 58 | +Accept wildcard characters: False |
| 59 | +``` |
| 60 | +
|
| 61 | +### -PolicyList |
| 62 | +
|
| 63 | +A list of one or more policies included in the package. For each policy in the list, the form is "\<PolicyType\>, \<PolicyName\>". Delimiters of ' ', '.', ':', '\t' are also acceptable. Supported policy types are listed in this [link](https://docs.microsoft.com/en-us/MicrosoftTeams/manage-policy-packages#supported-policy-types). To get the full list of available policy names, please refer to cmdlets such as [Get-CsTeamsMeetingPolicy](https://github.com/MicrosoftDocs/office-docs-powershell/blob/master/skype/skype-ps/skype/Get-CsTeamsMeetingPolicy.md) and [Get-CsTeamsMessagingPolicy](https://github.com/MicrosoftDocs/office-docs-powershell/blob/master/skype/skype-ps/skype/Get-CsTeamsMessagingPolicy.md) |
| 64 | +
|
| 65 | +```yaml |
| 66 | +Type: String[] |
| 67 | +Parameter Sets: (All) |
| 68 | +Aliases: |
| 69 | +Applicable: Microsoft Teams |
| 70 | +Required: True |
| 71 | +Position: 1 |
| 72 | +Default value: None |
| 73 | +Accept pipeline input: False |
| 74 | +Accept wildcard characters: False |
| 75 | +``` |
| 76 | +
|
| 77 | +### -Description |
| 78 | +
|
| 79 | +The description of the custom package. |
| 80 | +
|
| 81 | +```yaml |
| 82 | +Type: String |
| 83 | +Parameter Sets: (All) |
| 84 | +Aliases: |
| 85 | +Applicable: Microsoft Teams |
| 86 | +Required: False |
| 87 | +Position: 2 |
| 88 | +Default value: None |
| 89 | +Accept pipeline input: False |
| 90 | +Accept wildcard characters: False |
| 91 | +``` |
| 92 | +
|
| 93 | +### CommonParameters |
| 94 | +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216). |
| 95 | +
|
| 96 | +## INPUTS |
| 97 | +
|
| 98 | +## OUTPUTS |
| 99 | +
|
| 100 | +## NOTES |
| 101 | +
|
| 102 | +## RELATED LINKS |
| 103 | +
|
| 104 | +[Get-CsPolicyPackage](Get-CsPolicyPackage.md) |
| 105 | +
|
| 106 | +[Get-CsTeamsMeetingPolicy](https://github.com/MicrosoftDocs/office-docs-powershell/blob/master/skype/skype-ps/skype/Get-CsTeamsMeetingPolicy.md) |
| 107 | +
|
| 108 | +[Get-CsTeamsMessagingPolicy](https://github.com/MicrosoftDocs/office-docs-powershell/blob/master/skype/skype-ps/skype/Get-CsTeamsMessagingPolicy.md) |
0 commit comments