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 ...
PavelDyachuk
Apr 16, 2021Copper Contributor
Hi!
I just need UserPrincipalName in csv and couldn't find any appropriate answer.
So I created it by myself.
Get-Mailbox -Filter {recipienttypedetails -eq "SharedMailbox"} | select UserPrincipalName | Export-Csv D:\sharedmailboxes.csv
I just need UserPrincipalName in csv and couldn't find any appropriate answer.
So I created it by myself.
Get-Mailbox -Filter {recipienttypedetails -eq "SharedMailbox"} | select UserPrincipalName | Export-Csv D:\sharedmailboxes.csv