This PowerShell script will allow you to check the size and quotas of an Exchange Online mailbox using PowerShell, so that you can easily see if the mailbox size exceeds the allotted space.
$UPN = "user@contoso.com"
# Add -Force to it when you need to update EXO V1.
Install-Module -Name ExchangeOnlineManagement -Force
Connect-ExchangeOnline -UserPrincipalName exchangeadmin@contoso.com
get-mailbox $UPN | get-mailboxstatistics | ft displayname, totalitemsize
Get-Mailbox $UPN | Select *quota*
Sources:
- https://community.spiceworks.com/how_to/93142-check-mailbox-size-and-usage-with-office-365-or-exchange-online-find-users-nearing-their-quota
- https://docs.microsoft.com/en-us/powershell/exchange/connect-to-exchange-online-powershell?view=exchange-ps
- https://docs.microsoft.com/en-us/exchange/troubleshoot/user-and-shared-mailboxes/increase-or-customize-mailbox-size
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.