Share via


(選擇性) 定義回應群組的營業時間和休假日

 

上次修改主題的時間: 2011-07-17

工作流程可識別回應群組何時能夠接聽電話,以及如何處理在回應群組無法接聽時所撥打的電話。設定工作流程之前,您可以先定義上班時間和假日。之後當您設定工作流程時,您只需將事先定義的上班時間和假日套用至工作流程即可。

note附註:
若要將假日套用至工作流程,您必須預先定義至少一組假日。若要將上班時間套用至工作流程,您可以預先定義上班時間,也可以建立自訂的上班時間。但自訂的上班時間只能套用至特定工作流程,而無法重複使用於其他工作流程。您可以在設定工作流程時建立自訂的上班時間。
note附註:
如果您的回應群組隨時有人當班,或您只使用自訂的上班時間,則無須預先定義上班時間。

定義上班時間

上班時間可定義回應群組一般可在星期幾的幾點到幾點接聽電話。上班時間集合由回應群組在一周各天可工作的時間範圍所組成。例如,某個回應群組在工作日的工作時間可能是上午 8:00 到下午 4:00,周末則是上午 9:00 到中午 12:00 以及下午 1:00 到下午 5:00。

若要定義上班時間集合,您必須使用 New-CsRgsTimeRangeNew-CsRgsHoursOfBusiness Cmdlet。New-CsRgsTimeRange Cmdlet 可定義上下班時間,New-CsRgsHoursOfBusiness Cmdlet 則可指定要對一周各天套用的上下班時間 (上班時間集合)。如需使用這些 Cmdlet 的詳細資訊,請參閱 Lync Server 管理命令介面文件或 Lync Server 管理命令介面命令列說明。

important重要事項:
對於這些 Cmdlet 中的參數,請以 24 小時制表示時間 (例如 20:00=8:00 P.M.)。

若要建立上班時間集合

  1. 以 RTCUniversalServerAdmins 群組成員,或支援回應群組的某個預先定義管理角色成員的身分登入。如果您未登入為其中一種角色的成員,則系統會提示您輸入替代認證。

  2. 啟動 Lync Server 管理命令介面:依序按一下 [開始]、[所有程式]、[Microsoft Lync Server 2010] 和 [Lync Server 管理命令介面]。

  3. 對於您要定義的每個唯一時間範圍,請執行:

    $x = New-CsRgsTimeRange [-Name <name of time range>] `
    -OpenTime <time when business hours begin> `
    -CloseTime <time when business hours end>
    

    若要建立使用您所定義之範圍的上班時間集合,請執行:

    New-CsRgsHoursOfBusiness -Parent <service where the workflow is hosted> `
    -Name <unique name for collection> `
    [-MondayHours1 <first set of opening and closing times for Monday>] `
    [-MondayHours2 <second set of opening and closing times for Monday>] `
    [-TuesdayHours1 <first set of opening and closing times for Tuesday>] `
    [-TuesdayHours2 <second set of opening and closing times for Tuesday>] `
    [-WednesdayHours1 <first set of opening and closing times for Wednesday>] `
    [-WednesdayHours2 <second set of opening and closing times for Wednesday>] `
    [-ThursdayHours1 <first set of opening and closing times for Thursday>] `
    [-ThursdayHours2 <second set of opening and closing times for Thursday>] `
    [-FridayHours1 <first set of opening and closing times for Friday>] `
    [-FridayHours2 <second set of opening and closing times for Friday>] `
    [-SaturdayHours1 <first set of opening and closing times for Saturday>] `
    [-SaturdayHours2 <second set of opening and closing times for Saturday>] `
    [-SundayHours1 <first set of opening and closing times for Sunday>] `
    [-SundayHours2 <second set of opening and closing times for Sunday>]
    

    下列範例會將工作日的上班時間指定為上午 9:00 到下午 5:00,星期六則為上午 8:00 到上午 10:00 以及下午 2:00 到下午 6:00,星期日不上班:

    $a = NewRgsTimeRange -Name "Weekday Hours" `
    -OpenTime "9:00" -CloseTime "17:00"
    $b = NewRgsTimeRange -Name "Saturday Morning Hours" `
    -OpenTime "8:00" -CloseTime "10:00"
    $c = NewRgsTimeRange -Name "Saturday Afternoon Hours" `
    -OpenTime "14:00" -CloseTime "18:00"
    New-CsRgsHoursOfBusiness -Parent "ApplicationServer:Redmond.contoso.com" `
    -Name "Help Desk Business Hours" `
    -MondayHours1 $a `
    -TuesdayHours1 $a `
    -WednesdayHours1 $a `
    -ThursdayHours1 $a `
    -FridayHours1 $a `
    -SaturdayHours1 $b `
    -SaturdayHours2 $c
    

定義假日

假日可定義專員不工作、因此無法接聽電話的日期。假日集是假日的集合。例如,2011 年的國定假日或地區性假日就可以是假日集。一個工作流程可套用多個假日集。例如,您可以為日曆年度定義一組國定假日/地區性假日,並定義另一組假日代表公司休息日,再定義另一組假日代表團隊活動。工作流程可套用任何組合的假日集。

若要定義假日和假日集,您必須使用 New-CsRgsHolidayNew-CsRgsHolidaySet Cmdlet。New-CsRgsHoliday Cmdlet 可定義個別假日,New-CsRgsHolidaySet Cmdlet 則可指定哪些假日要排入假日集內。如需這些 Cmdlet 的詳細資訊,請參閱<Lync Server 管理命令介面>文件。

若要建立假日集

  1. 以 RTCUniversalServerAdmins 群組成員,或支援回應群組的某個預先定義管理角色成員的身分登入。如果您未登入為其中一種角色的成員,則系統會提示您輸入替代認證。

  2. 啟動 Lync Server 管理命令介面:依序按一下 [開始]、[所有程式]、[Microsoft Lync Server 2010] 和 [Lync Server 管理命令介面]。

  3. 對於您要定義的每個假日,請執行:

    $x = New-CsRgsHoliday [-Name <holiday name>] `
    -StartDate <starting date of holiday> -EndDate <ending date of holiday>
    

    若要建立包含您所定義之假日的假日集,請執行:

    New-CsRgsHolidaySet -Parent <service where the workflow is hosted> `
    -Name <unique name for holiday set> `
    -HolidayList <one or more holidays to be included in the holiday set>
    

    下列範例顯示包含兩個假日的假日集:

    $a = New-CsRgsHoliday -Name "New Year's Day" -StartDate "1/1/2011" -EndDate "1/2/2011"
    $b = New-CsRgsHoliday -Name "Independence Day" -StartDate "7/4/2011" -EndDate "7/4/2011"
    New-CsRgsHolidaySet -Parent "ApplicationServer:Redmond.contoso.com `
    -Name "2011 Holidays" -HolidayList ($a $b)