I am still going through my scripts and verifying how they work on Skype for Business server. Get-AssignedLineURI was next in line. And as with my other scripts, I have taken the time to fix minor bugs and add features to the releases. Here are the highlights of version 3.5:
- Code Cleanup: Moving parameters into sets, to avoid unintentional errors
- New feature: Listing users enabled for EV, but without a lineURI present
- New feature: Listing users disabled for EV, but with a lineURI present
- More information: Added sip domain to the output of the search
- Beta feature: Get the unassigned numbers from CsUnassignedNumber and quicly identify available numbers, First, first 10 or entire list
- Beta feature: Manual number range for the unused assigned section
Moving parameters into sets, to avoid unintentional errors
As the scripts grow, they tend to have more switches added. Some of these could actually make the other not work. And to avoid conflicting switches, I have moved them into sets. Run “get-help .\get-assignedlineuri.ps1” to get a clear view of the possible combinations (or read the help file).
Listing users enabled for EV, but without a lineURI present and Listing users disabled for EV, but with a lineURI present
It is not uncommon to make mistakes when working with EV. Two of the most common mistakes I run into is when admins disable enterprise voice and forget to remove it from the LineURI, or removes the LineURI and forget to disable EV. The first scenario doesn’t free up the number, and the second scenario still requires a EV license for the user. I used to run one-liners at deployments, to identify these “errors”, but decided I could use this script instead.
To identify if you have one the following issues, simply use the -ShowSummaryInShell switch:
To identify these objects, use the -CreateHTMLOutput switch and study the outputfile:
Get the unassigned numbers from CsUnassignedNumber range
As the script was made to gather all the lineuri’s in the deployment, it was easy to incorporate a switch to identify non-used numbers based of the unassigned range:
Manual number range for the unused assigned section
And while I was at it, I created an option to provide a manual start and end range. This way it’s is easy to find a number in a specific range, and the script doesn’t have to go through all your ranges to find just on number.
I have also gone through the license information output, and I think the new output makes more sense:
The script is available for download at the Technet Gallery
I hope you find these changes useful. And as always, I appreciate feedback ;)