When you have been following my weblog then you’ll have used the script to record on all to be had Crew numbers for your tenant.
As Microsoft Crew module and attributes have modified within the backend so above resolution is not going to paintings appropriately.
We’ve got changed the present resolution as discussed within the earlier weblog put up.
Resolution is to be had on GITHUB in addition to has been uploaded to PowerShell Gallery.
newest Microsoft Groups Module
Script will also be downloaded from PowerShell gallery, or you’ll get it from git.
PowerShell Gallery: https://www.powershellgallery.com/programs/AvailableTeamNumbersReport
Set up-Script -Title AvailableTeamNumbersReport
Procedure for executing the script and different portions stays similar, best distinction is within the under code:
$allnumbers = Get-CsOnlineTelephoneNumber -ResultSize 100000 | Make a selection Identification, ActivationState, CityCode,O365Region,InventoryType, TargetType, PortInOrderStatus
I needed to change it with under mitigation command:
$allnumbers =Get-CsPhoneNumberAssignment -Most sensible 100000 | Make a selection TelephoneNumber,NumberType,ActivationState,Town,IsoCountryCode,IsoSubdivision,PortInOrderStatus,PstnAssignmentStatus,PstnPartnerName
Additional under adjustments and likewise adjustments to names of a few attributes later within the script.
Input the Crew administrator credentials, it’ll connect with Microsoft groups, will get started extracting the to be had numbers and test for current assigned numbers in conjunction with customers to whom it’s assigned.
Logs and record might be stored in logs and record folder respectively.
Record may also be despatched at the e mail deal with you entered within the argument.
Here’s the record snippet that you are going to get, little trade from model 1 record.
Previous (earlier model Script) was once using Get-CsOnlineTelephoneNumber for fetching all numbers however more moderen model is the usage of Get-CsPhoneNumberAssignment.
Word: I’ve changed the previous script with this, additionally retaining the older model in PowerShell gallery, incase you want to reference it.
Thank you for studying and downloading…