Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

Grant-CsTeamsEmergencyCallingPolicy

This cmdlet assigns a Teams Emergency Calling policy.

Syntax

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>]

Description

This cmdlet assigns a Teams Emergency Calling policy to a user, a group of users, or to the Global policy instance. Emergency Calling policy is used for the life cycle of emergency calling experience for the security desk and Teams client location experience.

Examples

Example 1

Grant-CsTeamsEmergencyCallingPolicy -Identity user1 -PolicyName TestTECP

This example assigns the Teams Emergency Calling policy TestTECP to a user

Example 2

Grant-CsTeamsEmergencyCallingPolicy -Global -PolicyName SalesTECP

Assigns the Teams Emergency Calling policy called "SalesTECP" to the Global policy instance. This sets the parameters in the Global policy instance to the values found in the SalesTECP instance.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-Global

Sets the parameters of the Global policy instance to the values in the specified policy instance.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Group

Specifies the group used for the group policy assignment.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Identity

Indicates the Identity of the user account the policy should be assigned to.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-PassThru

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.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-PolicyName

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.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Rank

The rank of the policy assignment, relative to other group policy assignments for the same policy type.

Parameter properties

Type:Int32
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

System.Object

Notes

The GrantToGroup syntax is supported in Teams PowerShell Module version 4.5.1-preview or later.

Related Links


Feedback

Was this page helpful?