How To Manage Teams phone numbers



 Currently,  use PS to import those phone numbers to the CSV sheet, find a number not allocated and offer that to a new user.


Get-CsOnlineUser | Where-Object  { $_.LineURI -notlike $null } | Select-Object DisplayName,UserPrincipalName,LineURI | export-csv PHNumbers.csv -NoTypeInformation


How do we automate this process or PS script to find the unallocated number easily?

0 Replies