Get-CsTeamsShiftsPolicy
This cmdlet allows you to get properties of a TeamsShiftPolicy instance, including user's Teams off shift warning message-specific settings.
Syntax
Identity (Default)
Get-CsTeamsShiftsPolicy
[[-Identity] <XdsIdentity>]
[<CommonParameters>]
Filter
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:*".
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
Filter
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Identity
Applicable: Microsoft Teams
Policy instance name. Optional.
Parameter properties
Type: | XdsIdentity |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
Identity
Position: | 1 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
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.