Automated Mailbox Quota Enforcement

Monthly drift correction that keeps mailbox quotas aligned to policy across standard, tiered-exception, and shared mailboxes.

The Problem

Mailbox storage limits need to stay consistent with policy, but quotas drift over time. New mailboxes get provisioned with defaults that do not match the intended tier, exception group membership changes, and manual adjustments accumulate. When a mailbox quota is wrong, the user finds out by hitting a limit and filing a ticket, which makes the problem reactive rather than managed. The helpdesk had a more primitive version of a quota script in place, and asked for something more capable.

What I Built

An enhanced monthly enforcement script that compares every mailbox against its intended quota policy and corrects only what has drifted. It handles four categories: standard users, two tiers of raised-limit exceptions, and shared mailboxes. Quota policy definitions live in a single configuration block, so changing a limit is a one-line edit rather than a hunt through the script.

How It Works

The Tiered Exception Model

Not every user fits the standard limit. The enterprise identifies which roles and users require raised quotas and maintains a template for which tier they belong to. Tier assignment is handled through change management and membership in the corresponding exception group, so the script enforces policy without needing to encode individual decisions.

Impact

  • Prevents quota-related helpdesk tickets by correcting drift before users hit a limit
  • Keeps quota policy consistent across the entire tenant without manual review
  • Makes tier changes a matter of group membership rather than administrative work
  • Provides a monthly audit record of every quota change made

Script

View the full script →