Solved

exchange 2013 shell commands

Posted on 2015-02-08
3
114 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
3 Comments
 
LVL 30

Accepted Solution

by:
Gareth Gudger earned 250 total points
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Disabling the Directory Sync Service Account in Office 365 will stop directory synchronization from working.
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
In this video we show how to create a Resource Mailbox in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: Navigate to the Recipients >> Resources tab.: "Recipients" is our default selection …
how to add IIS SMTP to handle application/Scanner relays into office 365.

772 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now