Solved

exchange 2013 shell commands

Posted on 2015-02-08
3
139 Views
Last Modified: 2015-02-20
I am looking for some exchange management shell commands (v2013) to list:

1) all mailbox databases
2) the paths to the mailbox databases
3) backup history for all mailbox databases (or at least last backup date)
4) the exact version and build number of exchange installed

Any pointers? ideally all written out to CSV..
0
Comment
Question by:pma111
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 31

Accepted Solution

by:
Gareth Gudger earned 250 total points
ID: 40597196
1) all mailbox databases

You can run Get-MailboxDatabase and it will return all databases in your environment.

2) the paths to the mailbox databases

You can run Get-MailboxDatabase | FL *path* to get the database and log folder paths for all DBs.

3) backup history for all mailbox databases (or at least last backup date)

Get-MailboxDatabase -stat | fl *backup* will get this for you for all DBs.

4) the exact version and build number of exchange installed

Get-ExchangeServer | FT name,admindisplayversion will do this.

If you need to combine and drop into a CSV you could do this.

Get-MailboxDatabase | FT name,edbfilepath,logfolderpath,*backup* >> C:\MailboxStats.csv
0
 
LVL 7

Assisted Solution

by:dsnegi_25dec
dsnegi_25dec earned 250 total points
ID: 40597558
1) Get-MailboxDatabaseCopyStatus * | ft -auto

 Get-MailboxDatabaseCopyStatus * -Active | Select  Name,Status,MailboxServer,ActivationPreference,ContentIndexState

2) Get-MailboxDatabase | fl Name,EdbFilePath,LogFolderPath
    Get-MailboxDatabase | FL *path*

3)"ServerName", "Servername2" | % { Get-MailboxDatabase -Server $_ -Status | ft Name, Last* -Auto }

4) GCM exsetup |%{$_.Fileversioninfo}
0

Featured Post

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article lists the top 5 free OST to PST Converter Tools. These tools save a lot of time for users when they want to convert OST to PST after their exchange server is no longer available or some other critical issue with exchange server or impor…
In-place Upgrading Dirsync to Azure AD Connect
how to add IIS SMTP to handle application/Scanner relays into office 365.
This video discusses moving either the default database or any database to a new volume.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question