Get-CsTeamsShiftsPolicy

This cmdlet allows you to get properties of a TeamsShiftPolicy instance, including user's Teams off shift warning message-specific settings.

Syntax

Get-CsTeamsShiftsPolicy
   [[-Identity] <XdsIdentity>]
   [<CommonParameters>]
Get-CsTeamsShiftsPolicy
   [-Filter <String>]
   [<CommonParameters>]

Description

This cmdlet allows you to get properties of a TeamsShiftPolicy instance. Use this to get the policy name and Teams off shift warning message-specific settings (ShiftNoticeMessageType, ShiftNoticeMessageCustom, ShiftNoticeFrequency, AccessGracePeriodMinutes).

Examples

Example 1

PS C:\> Get-CsTeamsShiftsPolicy

Gets the properties of all instances of the TeamsShiftPolicy.

Example 2

PS C:\> Get-CsTeamsShiftsPolicy -Identity OffShiftAccessMessage1Always

Gets the properties of the OffShiftAccessMessage1Always instance of the TeamsShiftPolicy.

Parameters

-Filter

Enables you to use wildcard characters when indicating the policy (or policies) to be returned. To return a collection of all the policies, use this syntax: -Filter "tag:*".

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

-Identity

Policy instance name. Optional.

Type:XdsIdentity
Position:1
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams

Inputs

None

Outputs

System.Object