Skip to main content

Posts

Showing posts from 2017

Office365 Mailbox details with folders and subfolders

Hello Friends,
Sorry for coming back after a long time. Those are busy days with full pack of work.
I am here to share you the Power Shell command to get your OFFICE365 mailbox Sizes details available via Power shell commens.
1) First you have to open windows powershell on the machine.
2) Then You need to connect to your Office365 account. You can get details from https://technet.microsoft.com/en-us/library/dn975125.aspx
3) After connection You can type this command to get the details of all mailbox folders and subfolders.type below command in powershell window.


Get-Mailbox | Select-Object alias | foreach-object {Get-MailboxFolderStatistics -Identity $_.alias | select-object Identity, ItemsInFolder, FolderSize} | Export-csv c:\Stats.csv -NoTypeInformation

You can copy and paste it and no need to make any change. It will save a File at your C:\STATS.CSV.
Open it and You can see all details for your mailboxes.

Keep doing the Good work..!!

Enjoy.

Thanks
Pankaj