• Outlook User
  • New Outlook app
  • Outlook.com
  • Outlook Mac
  • Outlook & iCloud
  • Developer
  • Microsoft 365 Admin
    • Common Problems
    • Microsoft 365
    • Outlook BCM
    • Utilities & Addins

See which Exchange database the user is assigned to

Slipstick Systems

› Exchange Server › Cmdlets › See which Exchange database the user is assigned to

Last reviewed on April 22, 2021     9 Comments

This simple CMDLET will show you which database the users mailbox is in.

Get-mailbox -identity username | fl database

The result will look like this:
Database : Mailbox Database 1809052085

More Information

Get-Mailbox

See which Exchange database the user is assigned to was last modified: April 22nd, 2021 by Diane Poremsky
Post Views: 18

Related Posts:

  • Another administrator had this question: I found the solution for clea
    How to find the Exchange Server Mailbox Database ID
  • How to use a batch (.bat) file to backup your Microsoft Outlook person
    Exporting to create a backup archive
  • Rules Quota in Office 365 or Exchange 2013
  • Get Mailbox folder statistics

About Diane Poremsky

A Microsoft Outlook Most Valuable Professional (MVP) since 1999, Diane is the author of several books, including Outlook 2013 Absolute Beginners Book. She also created video training CDs and online training classes for Microsoft Outlook. You can find her helping people online in Outlook Forums as well as in the Microsoft Answers and TechNet forums.

Comments

  1. Riya says

    August 11, 2020 at 3:43 pm

    How to find the database for multiple users in a single command like atleast 4 users using any switch

    Reply
    • Diane Poremsky says

      August 11, 2020 at 5:04 pm

      Do you want for specific users or all users?

      If you want specific users, you'll need to use a csv list of users and a for each statement.

      If you want users in a filterable group, you can use something like this:

      Get-mailbox -Filter {RecipientTypeDetails -eq "UserMailbox"} | Get-MailboxStatistics | select DisplayName,database

      Reply
      • Courtney Rosenkoetter says

        August 27, 2020 at 3:49 pm

        Can you provide an example of the CSV list and foreach statement?

  2. M.S says

    December 3, 2018 at 1:48 am

    How about for all users?

    Reply
    • Diane Poremsky says

      December 3, 2018 at 11:33 pm

      For a quick list, use Get-Mailbox -ResultSize unlimited
      This result is
      Name Alias Database ProhibitSendQuota ExternalDirectoryObjectId
      ---- ----- -------- ----------------- -------------------------
      abc abc NAMPR05DG153-db112 99 GB (106,300,44... 158b841f-da8d-4193-81b...

      This Get-Mailbox | Sort database, name | Format-Table name, database will get you a simpler list with just the name and database.

      Reply
  3. Randy says

    October 26, 2017 at 9:10 am

    Nice command, thanks Diane!

    Reply
  4. John says

    July 18, 2017 at 7:04 am

    DOUBLE THUMBS UP! Many thanks.

    Reply
  5. Jacob says

    November 16, 2016 at 8:40 am

    Thanks alot! This was very helpful.

    Reply
  6. Green says

    October 6, 2016 at 2:54 am

    NICE ONE! You helped me alot with this article! WOW!!!!

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Visit Slipstick Forums.
What's New at Slipstick.com

Latest EMO: Vol. 31 Issue 3

Subscribe to Exchange Messaging Outlook






Support Services

Do you need help setting up Outlook, moving your email to a new computer, migrating or configuring Office 365, or just need some one-on-one assistance?

Our Sponsors

CompanionLink
ReliefJet
  • Popular
  • Latest
  • Week Month All
  • Jetpack plugin with Stats module needs to be enabled.
  • Sync Issues and Errors with Gmail and Yahoo accounts
  • Error Opening iCloud Appointments in Classic Outlook
  • Opt out of Microsoft 365 Companion Apps
  • Mail Templates in Outlook for Windows (and Web)
  • Urban legend: Microsoft Deletes Old Outlook.com Messages
  • Buttons in the New Message Notifications
  • Move Deleted Items to Another Folder Automatically
  • Open Outlook Templates using PowerShell
  • Count and List Folders in Classic Outlook
  • Google Workspace and Outlook with POP Mail
Ajax spinner

Recent Bugs List

Microsoft keeps a running list of issues affecting recently released updates at Fixes or workarounds for recent issues in classic Outlook (Windows).

For new Outlook for Windows: Fixes or workarounds for recent issues in new Outlook for Windows .

Outlook for Mac Recent issues: Fixes or workarounds for recent issues in Outlook for Mac

Outlook.com Recent issues: Fixes or workarounds for recent issues on Outlook.com

Office Update History

Update history for supported Office versions is at Update history for Office

Outlook Suggestions and Feedback

Outlook Feedback covers Outlook as an email client, including Outlook Android, iOS, Mac, and Windows clients, as well as the browser extension (PWA) and Outlook on the web.

Outlook (new) Feedback. Use this for feedback and suggestions for Outlook (new).

Use Outlook.com Feedback for suggestions or feedback about Outlook.com accounts.

Other Microsoft 365 applications and services




New Outlook Articles

Sync Issues and Errors with Gmail and Yahoo accounts

Error Opening iCloud Appointments in Classic Outlook

Opt out of Microsoft 365 Companion Apps

Mail Templates in Outlook for Windows (and Web)

Urban legend: Microsoft Deletes Old Outlook.com Messages

Buttons in the New Message Notifications

Move Deleted Items to Another Folder Automatically

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Google Workspace and Outlook with POP Mail

Newest Code Samples

Open Outlook Templates using PowerShell

Count and List Folders in Classic Outlook

Insert Word Document into Email using VBA

Warn Before Deleting a Contact

Use PowerShell to Delete Attachments

Remove RE:, FWD:, and Other Prefixes from Subject Line

Change the Mailing Address Using PowerShell

Categorize @Mentioned Messages

Send an Email When You Open Outlook

Delete Old Calendar Events using VBA

Repair PST

Convert an OST to PST

Repair damaged PST file

Repair large PST File

Remove password from PST

Merge Two Data Files

Sync & Share Outlook Data

  • Share Calendar & Contacts
  • Synchronize two computers
  • Sync Calendar and Contacts Using Outlook.com
  • Sync Outlook & Android Devices
  • Sync Google Calendar with Outlook
  • Access Folders in Other Users Mailboxes

Diane Poremsky [Outlook MVP]

Make a donation

Mail Tools

Sending and Retrieval Tools

Mass Mail Tools

Compose Tools

Duplicate Remover Tools

Mail Tools for Outlook

Online Services

Calendar Tools

Schedule Management

Calendar Printing Tools

Calendar Reminder Tools

Calendar Dates & Data

Time and Billing Tools

Meeting Productivity Tools

Duplicate Remover Tools

Productivity

Productivity Tools

Automatic Message Processing Tools

Special Function Automatic Processing Tools

Housekeeping and Message Management

Task Tools

Project and Business Management Tools

Choosing the Folder to Save a Sent Message In

Run Rules on messages after reading

Help & Suggestions

Submit Outlook Feature Requests

Slipstick Support Services

Buy Microsoft 365 Office Software and Services

Visit Slipstick Forums.

What's New at Slipstick.com

Home | Outlook User | Exchange Administrator | Office 365 | Outlook.com | Outlook Developer
Outlook for Mac | Common Problems | Utilities & Addins | Tutorials
Outlook & iCloud Issues | Outlook Apps
EMO Archives | About Slipstick | Slipstick Forums
Submit New or Updated Outlook and Exchange Server Utilities

Send comments using our Feedback page
Copyright © 2026 Slipstick Systems. All rights reserved.
Slipstick Systems is not affiliated with Microsoft Corporation.