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 Organizational Auto Attendant (OAA) service. Time ranges are used to form schedules.

NOTE

  • The start bound of the range must be less than its end bound.
  • A time range must be aligned with 30/60-minutes boundaries.
  • A time range can span from one minute to 24 hours.

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.

Required Parameters

-End

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

Type:System.TimeSpan
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-Start

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

Type:System.TimeSpan
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

Optional Parameters

-Tenant
Type:System.Guid
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online

Inputs

None

Outputs

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