Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell Script for Displaying email address, mailbox size, displayname

$
0
0

Okay just want to combine the two scripts.  I have the list my all users email address script.

 Get-Recipient | Select Name -ExpandProperty EmailAddresses | Select Name, SmtpAddress | Export-csv c:\AllStaffEmailAddress.csv

and the mailbox size script

 Get-MailboxStatistics -Database "Mailbox Database XXXXXXXXXXXXX" | Select DisplayName, ItemCount, TotalItemSize | Sort-Object TotalItemSize -Descending | Export-CSV C:\MBSizes.csv


Viewing all articles
Browse latest Browse all 15370

Trending Articles