編集

次の方法で共有


New-CsOnlineTimeRange

The New-CsOnlineTimeRange cmdlet creates a new time range.

Syntax

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

The End parameter represents the end bound of the time range.

Type:System.TimeSpan
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams

-Start

The Start parameter represents the start bound of the time range.

Type:System.TimeSpan
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams

-Tenant

Type:System.Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Microsoft Teams

Inputs

None

Outputs

Microsoft.Rtc.Management.Hosted.Online.Models.TimeRange