Commands › Microsoft Teams

Set-CsTeamsMeetingTemplatePermissionPolicy

Microsoft Teams MicrosoftTeams Set-*

This cmdlet updates an existing TeamsMeetingTemplatePermissionPolicy.

Quick start script

# Set-CsTeamsMeetingTemplatePermissionPolicy — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-MicrosoftTeams -CertificateThumbprint $thumb -ApplicationId $appId -TenantId $tenantId

# 2. Capture the current state first — you cannot roll back what you never recorded
$before = Get-CsTeamsMeetingTemplatePermissionPolicy
$before | Format-List

# 3. Make the change (dry run first)
Set-CsTeamsMeetingTemplatePermissionPolicy  -WhatIf
Set-CsTeamsMeetingTemplatePermissionPolicy

# 4. Verify and diff
$after = Get-CsTeamsMeetingTemplatePermissionPolicy
Compare-Object ($before | Out-String) ($after | Out-String)

Syntax

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

Parameters (4)

ParameterTypeRequiredWhat it controls
-Identity String Name of the policy instance to be updated.
-HiddenMeetingTemplates HiddenMeetingTemplate[] The updated list of meeting template IDs to hide. The HiddenMeetingTemplate objects are created with...
-Description String Pass in a new description if that field needs to be updated.
-DefaultMeetingTemplateId String Specifies the ID of the meeting template to be applied by default to ad-hoc or standard meetings created by the user. Must use the `customtemplate_<GUID>` format. When set to null, no default template is applied.

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