Test-MailboxExtendedProperty
Download the latest release: Test-MailboxExtendedProperty.ps1
Description
This script runs the Get-MailboxExtendedProperty
cmdlet and checks the results against each of the possible scenarios that can result in a mailbox to reaching a named properties quota exceeded event.
The following scenarios are checked: 1. Has the mailbox reached the total number of allowed named properties? 2. Has the mailbox reached the number of allowed Public Strings namespace named properties? 3. Has the mailbox reached the number of allowed Internet Headers namespace named properties? 4. Has the mailbox reached the number of allowed named properties in any other namespace? 5. Has the mailbox reached the number of allowed named properties with the same name prefix?
Syntax:
Example to check the mailbox named property usage.
.\Test-MailboxExtendedProperty.ps1 -Identity fred@contoso.com
Example to check the mailbox named property usage and alter the threshold from the default 0.9 to 0.95 (95% of the allowed named properties for the scenario).
.\Test-MailboxExtendedProperty.ps1 -Identity fred@contoso.com -Threshold 0.95
Example to check the mailbox named property usage and reduce the threshold to 0.7 (70%) and select the 20 (the default is 10) most used namespaces and named property prefixes.
.\Test-MailboxExtendedProperty.ps1 -Identity fred@contoso.com -Threshold 0.7 -SelectFirst 20
Prerequisites
This script uses the ExchangeOnlineManagement PowerShell module and an Exchange Online connection to be successfully established by a Tenant Admin.
Connect-ExchangeOnline -UserPrincipalName admin@contoso.com