Microsoft Exchange Mailbox export script.
This is a useful little script i came across when i was looking for a way to export a list of all mailboxes to a csv with size and last sent and receive attribute, but this script also exports other useful details to.
before running the script ensure you have a folder named c:\scripts otherwise this location can be changed by editing the PowerShell script.
for on-premise exchange environments execute the following PowerShell command.
./Export-MBXSizeAndType.ps1 -IsEXO $false
for Exchange online execute the following command.
./Export-MBXSizeAndType.ps1 -IsEXO $true