Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Mastering Exchange Server with Powershell: Databases
Rating: 3.6 out of 5(21 ratings)
10,732 students

Mastering Exchange Server with Powershell: Databases

Manage Exchange mailbox databases with PowerShell: move databases and logs, set limits and report on size and mailboxes
Created byVitalii Shumylo
Last updated 10/2026
English
English [Auto],

What you'll learn

  • Learn the PowerShell key concepts used for Exchange administration
  • Manage the mailbox databases
  • Move databases and logs to another location
  • Configure the mailbox database limits
  • Report on mailbox database size
  • Find the total number of mailboxes in a database
  • Determine the average mailbox size per database

Course content

1 section • 9 lectures • 1h 2m total length
  • PowerShell Key Concepts12:09

    Master PowerShell concepts for Exchange server management, including object-based pipelines, get-help basics, aliases, and variables for mailbox scripting tasks.

  • Managing the mailbox databases10:56

    Explore how to manage mailbox databases with the Exchange management shell, including creating, mounting, renaming, and removing databases, and controlling automatic mailbox distribution.

  • Moving databases and logs to another location8:27

    Learn to move Exchange database and log files to a new location using the management shell, including dismounting, remounting, and configuration-only updates.

  • Configuring the mailbox database limits5:57

    Configure mailbox database storage limits using shell commands, set quota and warning thresholds, override limits per mailbox, and manage deleted item retention and backup retention in Exchange databases.

  • Reporting on mailbox database size4:25

    Use the Exchange management shell to report mailbox database sizes by querying Get mailbox database, selecting name and database size, and exporting the results to a report file.

  • Finding the total number of mailboxes in a database6:21

    Use PowerShell to count mailboxes in a database with methods like the current property, Measure-Object, and Select-Object with a calculated property.

  • Determining the average mailbox size per database6:06

    Calculate the average mailbox size per database using the Exchange management shell, looping mailboxes, converting sizes to kilobytes, and measuring the result; include regular, archive, and disconnected mailboxes.

  • Intro to WMI and CIM8:06

    Explore the relationship between Windows Management Instrumentation (WMI) and Common Information Model (CIM), their DMTF standards, and how PowerShell enables remote and local management with both technologies.

  • Bonus Lecture: What to Learn Next0:14

Requirements

  • General familiarity with Microsoft Server and Exchange administration
  • A test Exchange server is helpful
  • Basic PowerShell experience

Description

Mailbox databases are where many Exchange problems start: full disks, oversized mailboxes, logs on the wrong volume. This short course shows the PowerShell commands that manage them, so you can look after your databases from the command line and answer questions about their size quickly.

How the course works

Each lecture takes one database task and shows it on a working Exchange server: the problem, the command and the result. The first lecture explains the PowerShell ideas used later, and a short introduction to WMI and CIM closes the course. You can repeat every step on a test server before using it in production.

Inside the course

The course is organised into these sections: Mailbox Database Management. Lectures you will find include: PowerShell Key Concepts; Managing the mailbox databases; Moving databases and logs to another location; Configuring the mailbox database limits; Reporting on mailbox database size; Finding the total number of mailboxes in a database; Determining the average mailbox size per database; Intro to WMI and CIM.

The course runs about 1.1 hours in 9 lectures. It is a focused course on mailbox databases only, so it does not cover installation, mail flow or mailbox tasks. It is a good fit if you want quick, repeatable commands for reporting and maintenance.

Who this course is for:

  • Exchange administrators who look after mailbox databases
  • System administrators who watch database size and limits
  • Scripting and automation technicians
  • Anyone preparing to become an Exchange administrator
  • IT specialists who answer questions about database growth