다음을 통해 공유


Office 365: Export Mail Box Size using Powershell

Start PowerShell

Run the following Windows PowerShell command, RUN AS ADMINISTRATOR

$LiveCred = Get-Credential

Windows PowerShell Credential Request window that opens type the credentials of an account in your cloud-based organization When you are finished click OK

Run this Session Connection Uri https://ps.outlook.com/powershell/ Credential

$Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $LiveCred -Authentication Basic -AllowRedirection

This enables cloud-based organizations in datacenters all over the world to connect Windows PowerShell to the cloud-based server

Import the session

Import-PSSession $Session

http://yshvili.com/wp-content/uploads/2015/12/images_cloude.JPG

SMTP Address Export

Get-Mailbox -ResultSize Unlimited | Select-Object DisplayName,PrimarySmtpAddress | Export-CSV “c:\SmtpAddress.csv”

Put the info in a csv file

Get-mailbox | Get-Mailboxstatistics | select displayname,TotalItemSize | export-csv “c:\yanivmailbox.csv”

http://yshvili.com/wp-content/uploads/2015/12/images_cloude4.JPG

Mail Box Size Including the Item

Get-Mailbox | Get-MailboxStatistics | ft DisplayName,TotalItemSize,ItemCount

http://yshvili.com/wp-content/uploads/2015/12/images_cloud2.JPG

Get the mailbox size using 

Get-mailbox | Get-Mailboxstatistics | select displayname,TotalItemSize

http://yshvili.com/wp-content/uploads/2015/12/images_cloude3.JPG

Video

View