編集

次の方法で共有


New-CsTeamsMeetingTemplatePermissionPolicy

Creates a new instance of the TeamsMeetingTemplatePermissionPolicy.

Syntax

New-CsTeamsMeetingTemplatePermissionPolicy
   [-Identity] <string>
   [-HiddenMeetingTemplates<PSListModifier[HiddenMeetingTemplate]>]
   [-Description <string>]
   [-Force]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Creates a new instance of the policy with a name and a list of hidden meeting template IDs. The template IDs passed into the HiddenMeetingTemplates object must be valid existing template IDs. The current custom and first-party templates on a tenant can be fetched by Get-CsTeamsMeetingTemplateConfiguration and Get-CsTeamsFirstPartyMeetingTemplateConfiguration respectively.

Examples

Example 1 - Creating a new meeting template permission policy

Assuming there are two valid templates with IDs firstparty_e514e598-fba6-4e1f-b8b3-138dd3bca748 and customtemplate_9ab0014a-bba4-4ad6-b816-0b42104b5056, we will first create the HiddenMeetingTemplate objects.

The next step would be to create the policy instance.

$hiddentemplate_1 = New-CsTeamsHiddenMeetingTemplate -Id customtemplate_9ab0014a-bba4-4ad6-b816-0b42104b5056
$hiddentemplate_2 = New-CsTeamsHiddenMeetingTemplate -Id firstparty_e514e598-fba6-4e1f-b8b3-138dd3bca748

New-CsTeamsMeetingTemplatePermissionPolicy -Identity Test_Policy -HiddenMeetingTemplates @($hiddentemplate_1, $hiddentemplate_2) -Description "This is a test policy"

Identity               : Tag:Test_Policy
HiddenMeetingTemplates : {customtemplate_9ab0014a-bba4-4ad6-b816-0b42104b5056, firstparty_e514e598-fba6-4e1f-b8b3-138dd3bca748}
Description            : This is a test policy

Parameters

-Description

Description of the new policy instance to be created.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams

-HiddenMeetingTemplates

The list of meeting template IDs to hide. The HiddenMeetingTemplate objects are created with New-CsTeamsHiddenMeetingTemplate.

Type:HiddenMeetingTemplate[]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams

-Identity

Name of the new policy instance to be created.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams