Remove Invalid Agents from Response Groups

This script checks and removes invalid Response Group agents. If we don’t delete them, we will have the following warning events:

Lync/SfB Server: Event 31137,31138 LS Response Group Service – UC Lobby

Usage:

Get-CsRgsInvalidAgents.ps1 [-Name] [-Remove]

Without parameters, the script will check all Response Groups for invalid agents:

 -Name
Use this to specify a response group. For instance, check all invalid agents from Test Response Group:

-Remove
Use this switch to Remove invalid agents: