Update 10/7/2017 : Version 1.21 Fixes an issue where new time frames wernt created.

rgshoureditor

Revision History

:v1.21: Fixed a Bug I introduced in 1.2
:v1.2:
 Implemented the New Time frame feature properly
Fixed a bug with Null entries causing alot of errors
Fixed a bug with removing malformed RGS entries
Added Error checking to Object Creation

:v1.1: Fixed a Bug where not defining a second timeframe would delete the first (whoops!)
:v1.0: Initial Release

What does this script do?

The editor allows you to create, modify and delete RGS HoursofBusiness objects ready for importing into your RGS workflows.

It will also automatically find the correct parent and edit existing RGS workflow objects saving you from human error

 

Why do we need this script?

Okay, So here's another one of my scripts born out of a need to do some stuff over and over again.

Editing timeframes in the RGS Webpage is easy if you only need one or two objects, but the timeframes you create are unique to that particular RGS Workflow object and cant be copied from workflow to workflow
Even worse if you want to edit the time on all of the RGS workflows at the same time, and the fact I found the RGS webpage slow and annoying. is why I created this script

Response Groups supports shared RGS HoursOfBusiness objects, to have a single preset you can apply across a ton of RGS Workflows. But it needs to be configured by PowerShell and remembering the syntax is a pain

How do I use this script?

Download an run the script from a server with the Lync / Skype for Business management tools installed
The script will audit your existing infrastructure and show any existing timeframes and there associated Service Id (Pool)

To create a new timeframe, select the Service ID (Pool) you want to associate the object to and click New...
Type in the name of the new Object and click Ok
The screen will update with some example data.
Place a checkbox in the days you want the WorkFlow to be active and enter in the timeframes and click on Save

If you only want one timeframe per day, leave the second set of times empty.

To edit existing TimeFrame, Select it from the Preset Schedule edit the appropriate Time Frames and click on Save

Anything else?

I will admit there is a bit of Visual Basic in here at the moment for the message boxes but most of the code is in WPF and Powershell

If you have an RGS Preset you need to edit frequently you can edit the defaults in the PS1 file.