Solved

Querying Exchange server with Powershell

Posted on 2013-11-04
7
195 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Suggested Solutions

Utilizing an array to gracefully append to a list of EmailAddresses
We are happy to announce a brand new addition to our line of acclaimed email signature management products – CodeTwo Email Signatures for Office 365.
In this video we show how to create a mailbox database 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 Servers >> Data…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

786 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