Commands › Microsoft Teams

Grant-CsTeamsEmergencyCallRoutingPolicy

Microsoft Teams MicrosoftTeams Grant-*

This cmdlet assigns a Teams Emergency Call Routing policy.

Quick start script

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

# 2. Run and inspect
Grant-CsTeamsEmergencyCallRoutingPolicy -Group <String> -PolicyName <String> | Format-List

# 3. Export for evidence / drift tracking
Grant-CsTeamsEmergencyCallRoutingPolicy | Export-Clixml .\CsTeamsEmergencyCallRoutingPolicy-$(Get-Date -Format yyyyMMdd).xml

Syntax — 3 parameter sets

GrantToTenant (Default)

Grant-CsTeamsEmergencyCallRoutingPolicy [[-PolicyName] <string>] [-Global]
 [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

GrantToGroup

Grant-CsTeamsEmergencyCallRoutingPolicy [-Group] <string> [[-PolicyName] <string>]
 [-PassThru] [-Rank <int>] [-WhatIf] [-Confirm] [<CommonParameters>]

Identity

Grant-CsTeamsEmergencyCallRoutingPolicy [[-Identity] <string>] [[-PolicyName] <string>]
 [-PassThru] [-WhatIf] [-Confirm] [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-Confirm SwitchParameter Prompts you for confirmation before running the cmdlet.
-Global SwitchParameter Sets the parameters of the Global policy instance to the values in the specified policy instance.
-Group String yes Specifies the group used for the group policy assignment.
-Identity String Indicates the Identity of the user account the policy should be assigned to.
-PassThru SwitchParameter Including this parameter (which does not take a value) displays the user information when the cmdlet completes. Normally there is no output when this cmdlet is run.
-PolicyName String yes The Identity of the Teams Emergency Call Routing policy to apply.
-Rank Int32 The rank of the policy assignment, relative to other group policy assignments for the same policy type.
-WhatIf SwitchParameter Shows what would happen if the cmdlet runs. The cmdlet is not run.

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