Solved

exchange 2013 shell commands

Posted on 2015-02-08
3
149 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
In-place Upgrading Dirsync to Azure AD Connect
In this video we show how to create an email address policy in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Mail Flow…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

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