Thursday 7 May 2015

Simple script to check Response Groups holiday sets

This is a very simple PowerShell script to export your Lync/Skype for Business holiday sets in Response Groups.
The script will parse your pool name (assuming there is only one), and will export each holiday set as a separate .csv file in the root of your C: drive.

$pool = "Service:"+(Get-CsPool | Where-Object {$_.Services -match "Registrar:"}).identity
$HolidaySet = Get-CsRGSHolidaySet
$Name = $HolidaySet.Name
foreach ($n in $HolidaySet)
Write-Host "Processing holiday set called $($" -foregroundcolor White
Get-CsRgsHolidaySet -Identity $pool -Name $ | Select-Object Identity -ExpandProperty holidaylist | Export-csv c:\$($

No comments:

Post a Comment