Solved

Querying Exchange server with Powershell

Posted on 2013-11-04
7
205 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
[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
  • 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
Are your AD admin tools letting you down?

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.

 

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

Read this checklist to learn more about the 15 things you should never include in an email signature.
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.
The video tutorial explains the basics of the Exchange server Database Availability groups. The components of this video include: 1. Automatic Failover 2. Failover Clustering 3. Active Manager
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

724 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