System.UnauthorizedAccessException when preparing Active Directory

When you run the following cmdlet to prepare Active Directory for the installation of an Exchange Server Cumulative Update (in this case CU17) you might encounter a System.UnauthorizedAccessException.
Enabling Kerberos Authentication Fails with Exchange Server

This blog post discusses an issue where OutlookAnywhere won’t offer Kerberos authentication even after following the detailed desription provided at TechNet.
Set-MailboxQuota Version 1.4

The PowerShell script to Set mailbox quotas at database or mailbox level the simple way has been updated to Version 1.4.
Clear Private Flag on Mailbox Messages

You implement shared mailboxes as part of a legacy public folder migration. Access to the shared mailbox provided by dedicated security groups which, in this case, provide access to dedicated sub folders within the mailbox.
Remove Orphaned HealthMailbox and SystemMailbox Accounts from MESO Container

This script removes Active Directory objects for HealthMailboxes or SystemMailboxes in the Microsoft Exchange System Objects (MESO) container that do not have a homeMDB attribute set.
Cannot extract the property value of ‚DeletedItemCount‘

When querying mailbox statistics in an Exchange organization using the following cmdlet (example) you might receive a warning that the object has been corrupted, and it’s in an inconsistent state.
ECP cannot display more than 500 OUs

—
Create Exchange internal/external Url based certificate requests

This script helps to create ceritifcate requests (CSR) based on hostnames used for internal and external Urls of Exchange Server virtual directories.
Gather Exchange Configuration Data

The PowerShell script gathers a lot of Exchange organizational configuration data for documentation purposes.
Make a disconnected mailbox visible

When you delete a mailbox or an Active Directory account, the soft-deleted or disconnected mailbox won’t show up in the list of disconnected mailboxes immediately.
