Commands › Microsoft Teams

Grant-CsTeamsEmergencyCallingPolicy

Microsoft Teams MicrosoftTeams Grant-*

This cmdlet assigns a Teams Emergency Calling policy.

Quick start script

# Grant-CsTeamsEmergencyCallingPolicy — 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-CsTeamsEmergencyCallingPolicy -Group <String> | Format-List

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

Syntax — 3 parameter sets

GrantToTenant (Default)

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

Identity

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

GrantToGroup

Grant-CsTeamsEmergencyCallingPolicy [-Group] <string> [[-PolicyName] <string>] [-PassThru] [-Rank <int>] [-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 The Identity of the Teams Emergency Calling policy to apply to the user. To remove an existing user level policy assignment, specify PolicyName as $null.
-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.