DEtailed Monitoring
-
Monday, January 09, 2012 3:36 PMIs there any quick ans easy way to get the detailed report of Exchange Server 2007 which shows the each and ever SG with total and free space avasilable, services up and running , mails in the queue etc. ??
Where Technology Meets Talent
All Replies
-
Wednesday, January 11, 2012 7:50 AM
Hi,
We can try to run the command below to get the related information:
1. To get database size, you can run the command below:
Get-MailboxDatabase | Select Server, StorageGroupName, Name, @{Name="Size (MB)";Expression={$objitem = (Get-MailboxDatabase $_.Identity); $path = "`\`\" + $objitem.server + "`\" + $objItem.EdbFilePath.DriveName.Remove(1).ToString() + "$"+ $objItem.EdbFilePath.PathName.Remove(0,2); $size = ((Get-ChildItem $path).length)/1024KB; [math]::round($size, 2)}}, | Format-table –AutoSize
2. To get disk information you can run the command below:
Get-WMIObject Win32_LogicalDisk -filter “DriveType=3″
3. To get the stopped windows service you can run the command below:
Get-service |FL name, stopped
Also you can try to schedule task from windows to run those command as a schedule.
Besides, I’d like to refer you a related article which has a sample script to monitor Exchange databases
http://www.stevieg.org/2011/06/exchange-environment-report/
Xiu Zhang
TechNet Community Support
- Marked As Answer by Xiu Zhang - MSFT Friday, January 20, 2012 2:33 AM

