Solved

Querying Exchange server with Powershell

Posted on 2013-11-04
7
201 Views
Last Modified: 2013-11-06
I have this command below, that retrieves information about databases on existing Exchange server which are 2 Exchange server, how can I run the same command to retrieve information about just one specific server

Thanks

Get-MailboxDatabase -Status | select ServerName,Name,DatabaseSize,EdbFilePath,LogFolderPath
0
Comment
Question by:jskfan
  • 4
  • 3
7 Comments
 
LVL 76

Accepted Solution

by:
Alan Hardisty earned 500 total points
ID: 39622793
Use the following:

Get-MailboxDatabase -Server Servername -Status | select ServerName,Name,DatabaseSize,EdbFilePath,LogFolderPath
0
 

Author Comment

by:jskfan
ID: 39622993
I tried it , it still gives me the output for both servers

Get-MailboxDatabase -Server Servername -Status | select ServerName,Name,DatabaseSize,EdbFilePath,LogFolderPath
0
 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 39623662
You are presumably replacing 'servername' with the name of the server you want to query I hope?
0
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

 

Author Comment

by:jskfan
ID: 39625551
yes...
But it displays the output for all mailbox databases server
0
 
LVL 76

Expert Comment

by:Alan Hardisty
ID: 39625563
It shouldn't!

What version of Exchange do you have?
0
 

Author Comment

by:jskfan
ID: 39628704
Get-MailboxDatabase -Server Servername -Status | select ServerName,Name,DatabaseSize,EdbFilePath,LogFolderPath

I found out the only thing I need to change is the ServerName in the Select Statement.

ex:
Get-MailboxDatabase  -Status | select Exchangeserve1 ,DatabaseSize,EdbFilePath,LogFolderPath
0
 

Author Closing Comment

by:jskfan
ID: 39628706
Thanks
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
A list of top three free exchange EDB viewers that helps the user to extract a mailbox from an unmounted .edb file and get a clear preview of all emails & other items with just a single click on mailboxes.
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…
In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

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