Bearbeiten

Freigeben über


New-CsTeamsVirtualAppointmentsPolicy

This cmdlet is used to create a new instance of the TeamsVirtualAppointmentsPolicy.

Syntax

New-CsTeamsVirtualAppointmentsPolicy
   [-EnableSmsNotifications <Boolean>]
   [-Identity] <String>
   [-Force]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

Creates a new instance of the TeamsVirtualAppointmentsPolicy. This policy can be used to tailor the virtual appointment template meeting experience. The parameter EnableSmsNotifications allows you to specify whether your users can choose to send SMS text notifications to external guests in meetings that they schedule using the virtual appointment meeting template.

Examples

Example 1

PS C:\> New-CsTeamsVirtualAppointmentsPolicy -Identity sms-enabled

Identity                 EnableSmsNotifications                                                                          
--------                 ----------------------                                                                          
Tag:sms-enabled                            True

Creates a new policy instance with the identity enable-sms. EnableSmsNotifications will default to true if it is not specified.

Example 2

PS C:\> New-CsTeamsVirtualAppointmentsPolicy -Identity disable-sms -EnableSmsNotifications $false

Identity                 EnableSmsNotifications                                                                          
--------                 ----------------------                                                                          
Tag:sms-enabled                            False

Creates a new policy instance with the identity sms-disabled. EnableSmsNotifications is set to the value specified in the command.

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-EnableSmsNotifications

This property specifies whether your users can choose to send SMS text notifications to external guests in meetings that they schedule using a virtual appointment template meeting.

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

-Force

Suppresses the display of any non-fatal error message that might arise when running the command.

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Identity

Name of the new policy instance to be created.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-WhatIf

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

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

Outputs

TeamsVirtualAppointmentsPolicy.Cmdlets.TeamsVirtualAppointmentsPolicy