Get-LyncNumberAssignment :Find #Lync Users/Objects by Phone Number/LineURI #PowerShell
Often in Lync it’s useful to understand if a number is assigned, or who/what is assigned a particular number. There isn’t really an easy way to do this out of the box. Numbers can be assigned to Users, Private Lines, Analog Devices, Common Area Phones, Exchange UM Contact Objects, Dial in Conference, Application Endpoints and Response Groups.
This script checks all these types for a number match, and outputs the data as objects allowing further manipulation.
Uses for script
- Find out of a number is in use
- Find all the numbers assigned from a particular range/country
- Find all the objects in an environment with an assigned number, and their associated registrar pool (useful to see where common area, exchange UM and other contact objects home)
Download Here: https://github.com/tomarbuthnot/Get-LyncNumberAssignment
You need to “dot source” the function into your session and you will need the Lync PowerShell Module. Here is the basic output
Finding all object with “+44” in their LineUri, sorting in order of LineURI and Format into a table
Finding all objects with any number assigned, Selecting Line URI, Registrar Pool and Type of Object, then sorting by type to see the different types
Hope you find it useful. Feedback welcome.