[This is preliminary documentation and is subject to change. Blank topics are included as placeholders.]

Creates a new set of Response Group application business hours. Business hour sets are used to indicate the days of the week and the times of day when Response Group agents are typically available to answer phone calls.

Syntax

New-CsRgsHoursOfBusiness -Parent <RgsIdentity> -Name <String> [-FridayTimeRange1 <TimeRange>] [-FridayTimeRange2 <TimeRange>] [-InMemory <SwitchParameter>] [-MondayTimeRange1 <TimeRange>] [-MondayTimeRange2 <TimeRange>] [-Private <$true | $false>] [-SaturdayTimeRange1 <TimeRange>] [-SaturdayTimeRange2 <TimeRange>] [-SundayTimeRange1 <TimeRange>] [-SundayTimeRange2 <TimeRange>] [-Tenant <Nullable>] [-ThursdayTimeRange1 <TimeRange>] [-ThursdayTimeRange2 <TimeRange>] [-TuesdayTimeRange1 <TimeRange>] [-TuesdayTimeRange2 <TimeRange>] [-WednesdayTimeRange1 <TimeRange>] [-WednesdayTimeRange2 <TimeRange>]

Parameters

Parameter Required Type Description

Parent

Required

Rgs Identity

Service where the new business hours set will be hosted. For example: -Parent "service: ApplicationServer:atl-cs-001.litwareinc.com".

Name

Required

String

Unique name to be assigned to the business hours set. The combination of the Parent property and the Name property enables you to uniquely identify business hour sets without having to refer to the collection’s GUID (globally unique identifier).

Private

Optional

Boolean

If set to True, the hours of business can only be used by the specified workflow. If set to False (the default value) the hours of business can be shared among multiple workflows.

MondayTimeRange1

Optional

TimeRange object

First set of opening and closing times for Monday. If your organization is open from, say, 9:00 AM to 5:00 PM every Monday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Monday.

If your organization is closed on Mondays then do not configure a value for either MondayTimeRange1 or MondayTimeRange2.

MondayTimeRange2

Optional

TimeRange object

Second set of opening and closing times for Monday. If your organization is open from, say, 9:00 AM to 5:00 PM every Monday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Monday.

TuesdayTimeRange1

Optional

TimeRange object

First set of opening and closing times for Tuesday. If your organization is open from, say, 9:00 AM to 5:00 PM every Tuesday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Tuesday.

If your organization is closed on Tuesdays then do not configure a value for either TuesdayTimeRange1 or TuesdayTimeRange2.

TuesdayTimeRange2

Optional

TimeRange object

Second set of opening and closing times for Tuesday. If your organization is open from, say, 9:00 AM to 5:00 PM every Tuesday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Tuesday.

WednesdayTimeRange1

Optional

TimeRange object

First set of opening and closing times for Wednesday. If your organization is open from, say, 9:00 AM to 5:00 PM every Wednesday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Wednesday.

If your organization is closed on Wednesday then do not configure a value for either WednesdayTimeRange1 or WednesdayTimeRange2.

WednesdayTimeRange2

Optional

TimeRange object

Second set of opening and closing times for Wednesday. If your organization is open from, say, 9:00 AM to 5:00 PM every Wednesday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Wednesday.

ThursdayTimeRange1

Optional

TimeRange object

First set of opening and closing times for Thursday. If your organization is open from, say, 9:00 AM to 5:00 PM every Thursday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Thursday.

If your organization is closed on Thursdays then do not configure a value for either ThursdayTimeRange1 or ThursdayTimeRange2.

ThursdayTimeRange2

Optional

TimeRange object

Second set of opening and closing times for Thursday. If your organization is open from, say, 9:00 AM to 5:00 PM every Thursday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Thursday.

FridayTimeRange1

Optional

TimeRange object

First set of opening and closing times for Friday. If your organization is open from, say, 9:00 AM to 5:00 PM every Friday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Friday.

If your organization is closed on Fridays then do not configure a value for either FridayTimeRange1 or FridayTimeRange2.

FridayTimeRange2

Optional

TimeRange object

Second set of opening and closing times for Friday. If your organization is open from, say, 9:00 AM to 5:00 PM every Friday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Friday.

SaturdayTimeRange1

Optional

TimeRange object

First set of opening and closing times for Saturday. If your organization is open from, say, 9:00 AM to 5:00 PM every Saturday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Saturday.

If your organization is closed on Saturdays then do not configure a value for either SaturdayTimeRange1 or SaturdayTimeRange2.

SSaturdayTimeRange2

Optional

TimeRange object

Second set of opening and closing times for Saturday. If your organization is open from, say, 9:00 AM to 5:00 PM every Saturday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Saturday.

SundayTimeRange1

Optional

TimeRange object

First set of opening and closing times for Sunday. If your organization is open from, say, 9:00 AM to 5:00 PM every Sunday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Sunday.

If your organization is closed on Sundays then do not configure a value for either SundayTimeRange1 or SundayTimeRange2.

SundayTimeRange2

Optional

TimeRange object

Second set of opening and closing times for Sunday. If your organization is open from, say, 9:00 AM to 5:00 PM every Sunday then you will only need to configure a single time range. However, if your organization is open from 8:00 AM to noon, closes for an hour lunch, then is open again from 1:00 PM to 5:00 PM you will need to create two time ranges for Sunday.

InMemory

Optional

Guid

Creates an object reference without actually committing the object as a permanent change. If you assign the output of this cmdlet called with this parameter to a variable, you can make changes to the properties of the object reference and then commit those changes by calling this cmdlet’s matching Set- cmdlet.

Force

Optional

Switch Parameter

Suppresses the display of any non-fatal error message that might arise when running the command.

Detailed Description

In order to provide callers with the best possible experience, the Response Group application makes it possible for you to clearly define when Response Group agents are available to answer calls and when they are not available to answer calls. With the Response Group application you can define business hours; these hours indicate the days of the week and hours of the day that agents are available to answer calls. For example, if your organization is typically open from 9:00 AM to 5:00 PM Monday through Friday then you would configure business hours that show that agents are available from 9:00 AM to 5:00 PM Monday through Friday (and, by extension, that agents are not available at, say, 8:00 PM on a Thursday or 2:30 PM on a Sunday).

New business hour sets are created using the New-CsRgsHoursOfBusiness cmdlet. When configuring business hours within a business hour set keep in mind that each day of the week has both a TimeRange1 and a TimeRange2 property. If your help desk is open from 8:00 AM to 5:00 PM you only need to assign values to the appropriate TimeRange1 property. However, suppose the help desk is open from 8:00 AM to 2:00 PM, then open again from 5:00 PM until 11:00 PM. In that case you need to assign the time range 8:00 AM to 2:00 PM to TimeRange1 and 5:00 PM to 11:00 PM to TimeRange2.

Return Types

Creates new instances of the Microsoft.Rtc.Rgs.Management.WriteableSettings.BusinessHours object.

Examples

-------------------------- Example 1 ------------------------

Copy Code
New-CsRgsHoursOfBusiness -Parent "service:ApplicationServer:atl-cs-001.litwareinc.com" -Name "Help Desk Business Hours" 

The command shown in Example 1 creates a new business hours set named Help Desk Business Hours on ApplicationServer:atl-cs-001.litwareinc.com. In this example, no business hours are configured for the set.

-------------------------- Example 2 ------------------------

Copy Code
$weekday = New-CsRgsTimeRange -Name "Weekday Hours" -OpenTime "8:00" -CloseTime "18:00" 

New-CsRgsHoursOfBusiness -Parent "service:ApplicationServer:atl-cs-001.litwareinc.com" -Name "Help Desk Business Hours" -MondayTimeRange1 $weekday -TuesdayTimeRange1 $weekday -WednesdayTimeRange1 $weekday -ThursdayTimeRange1 $weekday -FridayTimeRange1 $weekday

In Example 2, a new business hours set named Help Desk Business Hours on ApplicationServer:atl-cs-001.litwareinc.com. In this example, however, business hours are configured for each day of the week Monday through Friday. To do this, the first command in the example uses the New-CsRgsTimeRange command to create a time range with an OpenTime of 8:00 AM (8:00) and a CloseTime of 6:00 PM (18:00). This time range is stored in a variable named $weekday.

The second command in the example then creates the new business hours set. In addition to specify the set’s Parent and Name, additional parameters (such as –MondayTimeRange1) are used to configure business hours for the weekdays Monday through Friday. In each case, those business hours are set to 8:00 AM to 6:00 PM, and by using the time range variable $weekday.