Microsoft Teams and Skype for Business Online – Phonebook export

Howdy folks!

I’ve been working on a large scale migration the last few weeks and one of the outcomes was “Can you get me an export of the phonebook, please?”

I couldn’t find an easy way of doing this so now I’ve put together this PowerShell.  You will need to connect to Skype for Business Online Module as per your normal methodology.  I have a previous post should you need any assistance with it – you can find it here 


The PowerShell you’ll need is :

Get-CsOnlineUser -Filter { EnterpriseVoiceEnabled -eq $true } | select DisplayName,UserPrincipalName,LineURI | Export-CSV -nti c:\phonebook.csv


You can change the output location to suit your needs.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.