New-CsOnlineTimeRange

 

Topic Last Modified: 2017-02-24

The New-CsOnlineTimeRange cmdlet creates a new time range.

New-CsOnlineTimeRange -Start <TimeSpan> -End <TimeSpan>  

This example creates a time range for a 9am to 5pm work day.

$workdayTimeRange = New-CsOnlineTimeRange -Start 09:00 -End 17:00

This example creates a 24-hour time range.

$allDayTimeRange = New-CsOnlineTimeRange -Start 00:00 -End 1.00:00

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.

NoteNote:
  • The start and end bounds of the time range must obey the relation start < end.

  • A time range can only be formed of minute/hour increments.

  • A time range can span from one minute to 24 hours.

 

Parameter Required Type Description

Start

Required

System.TimeSpan

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

End

Required

System.TimeSpan

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

The New-CsOnlineTimeRange cmdlet creates new instances of the Microsoft.Rtc.Management.Hosted.Online.Models.TimeRange object.

 
Show: