Use a custom number range with Get-UnusedNumbers.ps1

A big ask for the script has been to use a custom number range. The script has been dependent on that Unassigned Numbers has been defined. I am happy to announce that you are now able to use a custom range with the Get-Unused function found within the script.

How to use a custom number range

Get-Unused -RangeStart +47232323001111 -RangeEnd +47232323001190 -Name “Custom Range Norway”

  • RangeStart needs the number to be in the e.164 format
  • RangeEnd needs to be within a reasonable range of RangeStart and in the e.164 format
  • Name is optional and you can call it what fits your deployment
  • Will return the next available number

unused1

Get-Unused -RangeStart +47232323001111 -RangeEnd +47232323001190 -Name “Custom Range Norway” -ListAll $true

  • RangeStart needs the number to be in the e.164 format
  • RangeEnd needs to be within a reasonable range of RangeStart and in the e.164 format
  • Name is optional and you can call it what fits your deployment
  • ListAll set to $true will list all available numbers

listunused2

Get the script at TechNet Gallery: http://gallery.technet.microsoft.com/Find-next-available-number-58391c72

Get-UnusedNumbers V3 Released

Just a quick post to let you know the Get-UnusedNumbers.ps1 has been updated and uploaded to the Technet Gallery.

The script has gone through some major changes since it was first released in January 2011 on msunified.net , V1 article, V2 article. I will go through use cases, examples and explain the script in future posts. But here are the highlights of v3:

  • CHANGE: Moved the routine of collecting all DID’s to a separate function so it’s easier to reuse for other scripts and functions
  • NEW FEATURES: Created a new function that generates extensions and check if duplicates exists
  • EXAMPLES: Added three examples showing how the functions can be used