Today I was curious how many numbers we have used up on our DID block and wanted to pull a report specifying which numbers were allocated to which user, conference room, etc. After a quick Google search, I came accross a powershell script by Lasse Nordvik Wedø. Attached below is a copy of his powershell script with a few modifications by me to pull a couple of extra attributes about the user from Active Directory. Please make sure to drop him a comment on his blog, located here: http://tech.rundtomrundt.com/2012/04/listing-all-deployed-numbers-in-lync.html
The following list of numbers will be generated to a .htm web report:
- Users enabled in Lync without a number assigned
- Users with a number assigned to them
- Users with a private line
- Analog devices
- Common Area Phone Numbers
- Response Group Numbers
- Meeting (dialin) numbers
- Meeting Room Objects
- Exchange Objects
- Application endpoints with a LineURI
The script can be downloaded here (make sure to remove the .txt extension once you have downloaded it): Assigned_numbers.ps1
Here is an image of executing the powershell script:
Here is an image of the result (webpage):
Here is an image of what the htm file looks like when you open it up:
Additionally, if you are looking for a complete resource of different attributes you can pull from the Get-ADUser command, see the following technet article: http://social.technet.microsoft.com/wiki/contents/articles/12037.active-directory-get-aduser-default-and-extended-properties.aspx
nice tool. thanks
Fantastic script!
Very awesome tool, made my life a little easier.
it's a nice tool to get the user list.
Thank you.
I can't thank you enough for this script...like so many others this has saved me a lot of time. Works great on Skype for Business.
Greats...! Yout script work for me.
Thank you.
Great script 🙂
But MeetingRooms is not included :(...
Please see the updated script including Meeting Rooms now.
Hi, been using your script for years, it's been amazing! I did want to leave a comment and let you know that I have a modified version that also lists Meeting Rooms.
If you'd like to see this version and perhaps update your master script, feel free to reach out.
Thanks again!
Thanks Matt, I've added your contributions 🙂
Perfect, Thank you for saving my day. Keep it up !
Great Script!
Tnank you
really nice, thank you!