New-CsOnlineTimeRange

The New-CsOnlineTimeRange cmdlet creates a new time range.

Syntax

New-CsOnlineTimeRange
   [-End <Object>]
   [-Start <Object>]
   [-BypassDualWrite <Object>]
   [-DomainController <Object>]
   [-Force]
   [-Tenant <Object>]
   [-AsJob]
   [<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 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.

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

PARAMVALUE: TimeSpan

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

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

PARAMVALUE: TimeSpan

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

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

Optional Parameters

-AsJob

{{Fill AsJob Description}}

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-BypassDualWrite

PARAMVALUE: $true | $false

Type:Object
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-DomainController

PARAMVALUE: Fqdn

Type:Object
Aliases:DC
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:Skype for Business Online
-Force

PARAMVALUE: SwitchParameter

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

PARAMVALUE: Guid

Type:Object
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