?
Solved

exchange 2013 shell commands

Posted on 2015-02-08
3
Medium Priority
?
157 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 1000 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 1000 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

Get your Disaster Recovery as a Service basics

Disaster Recovery as a Service is one go-to solution that revolutionizes DR planning. Implementing DRaaS could be an efficient process, easily accessible to non-DR experts. Learn about monitoring, testing, executing failovers and failbacks to ensure a "healthy" DR environment.

Question has a verified solution.

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

If you troubleshoot Outlook for clients, you may want to know a bit more about the OST file before doing your next job. IMAP can cause a lot of drama if removed in the accounts without backing up.
A couple of months ago we ran into an issue that necessitated re-creating our Edge Subscriptions. However, when we attempted to execute the command: New-EdgeSubscription -filename C:\NewEdgeSub_01.xml we received an error indicating that the LDAP se…
In this video we show how to create a Contact 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 Recipients >> Contact ta…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Suggested Courses

771 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