Skip to content
James Arber edited this page May 19, 2018 · 3 revisions

INPUTS

None. New-CsRgsAustralianHolidayList.ps1 does not accept pipelined input.

OUTPUTS

New-CsRgsAustralianHolidayList.ps1 creates multiple new instances of the Microsoft.Rtc.Rgs.Management.WritableSettings.HolidaySet object and cannot be piped.

PARAMETER -FrontEndPool

Frontend Pool where the new holiday set will be hosted. If you dont specify a ServiceID or FrontEndPool, the script will try and guess the frontend to put the holidays on. Specifying this instead of ServiceID will cause the script to confirm the pool unless -Unattended is specified

PARAMETER -RGSPrepend

String to Prepend to Listnames to suit your environment

PARAMETER -DisableScriptUpdate

Stops the script from checking online for an update and prompting the user to download. Ideal for scheduled tasks

PARAMETER -RemoveExistingRules

Deprecated. Script now updates existing rulesets rather than removing them. Kept for backwards compatability

PARAMETER -ServiceID

Deprecated. Service where the new holiday set will be hosted. For example: -ServiceID "service:ApplicationServer:SFBFE01.Skype4badmin.com/1987d3c2-4544-489d-bbe3-59f79f530a83". To obtain your service ID, run Get-CsRgsConfiguration -Identity FEPool01.skype4badmin.com If you don't specify a ServiceID or FrontEndPool, the script will try and guess the frontend to put the holidays on.

PARAMETER -Unattended

Assumes yes for pool selection criteria when multiple pools are present and Poolfqdn is specified. Also stops the script from checking for updates Check the script works before using this!

EXAMPLES

Adds holiday rule sets to the application server specified in the ServiceID PS C:\> New-CsRgsAustralianHolidayList.ps1 -ServiceID "service:ApplicationServer:SFBFE01.skype4badmin.com/1987d3c2-4544-489d-bbe3-59f79f530a83" -RGSPrepend "RGS-AU-"

Runs the script and prompts the user for input to select the pool PS C:\> New-CsRgsAustralianHolidayList.ps1

Runs the script in unattended mode and adds/updates the holiday lists on AUMELSFBFE.Skype4badmin.local PS C:\> New-CsRgsAustralianHolidayList.ps1 -DisableScriptUpdate -FrontEndPool AUMELSFBFE.Skype4badmin.local -Unattended