Script: Count Lync Users Assignment Per Policy

I’ve recently been asked by a colleague if there is an easy way in Lync to find unused Dial Plans or Conferencing policies, meaning policies not assigned to any user or a small amount of users within the environment.

I did some research and I was able to find the following great script, but unfortunately that script was only counting the Voice User policies and not including Global/Site policies as well or other existing policies such as Dial Plans, Conferencing, Mobility etc.

Based on that script, I decided to write a new script which will output a list of all existing Lync Policies assigned to a user and counter of the number of assignment per each policy or dial plan.

The script will also count how many users are assigned to default (Global) or Site Policy and not only User assigned policies.

Download:

TechNet Gallery

Output Example: