New-CsOnlineTimeRange
The New-CsOnlineTimeRange cmdlet creates a new time range.
Syntax
Default (Default)
New-CsOnlineTimeRange
-Start <TimeSpan>
-End <TimeSpan>
[-Tenant <Guid>]
[<CommonParameters>]
Description
The New-CsOnlineTimeRange cmdlet creates a new time range to be used with the Auto Attendant (AA) service. Time ranges are used to form schedules.
NOTES:
- The start bound of the range must be less than its end bound.
- Time ranges within a weekly recurrent schedule must align with 15-minute boundaries.
Examples
Example 1
$workdayTimeRange = New-CsOnlineTimeRange -Start 09:00 -End 17:00
This example creates a time range for a 9AM to 5PM work day.
Example 2
$allDayTimeRange = New-CsOnlineTimeRange -Start 00:00 -End 1.00:00
This example creates a 24-hour time range.
Parameters
-End
Applicable: Microsoft Teams
The End parameter represents the end bound of the time range.
Parameter properties
Type: | System.TimeSpan |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Start
Applicable: Microsoft Teams
The Start parameter represents the start bound of the time range.
Parameter properties
Type: | System.TimeSpan |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Tenant
Applicable: Microsoft Teams
Parameter properties
Type: | System.Guid |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
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.