Forum Discussion
rootwontfall
Jun 08, 2019Copper Contributor
Script to export to CSV all Mailboxes and SharedMailboxes
Hi, I'm trying to make a new script in Powershell to display (for a report) the following attributes in a CSV table like this: DisplayName UserPrincipalName Licenses RecipientTypeDetails ...
DeepakRandhawa
Jun 12, 2019Iron Contributor
Did you use Connect-MsolService to be able to run Get-MsolUser part of the cmd ?
I used the same set of cmdlets and was able to get required data.
Deepak
rootwontfall
Jun 12, 2019Copper Contributor
That's it!
With the complete script I forgot to write at first Connect-MsolServie to get all users licenses.
Thank you so much!