Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > PowerShell

Vista - Exchange 2007 - Queue Size

Reply
 
Old 11-21-2008   #1 (permalink)
Personne


 
 

Exchange 2007 - Queue Size

It seems that I'm too noob in Powershell for my needs yet

I do have 3 exchange servers, and I need to pull out some basic stats
from them

$computers = "MAIL01-SD","MAIL01-VN","MAIL01-FL"
Foreach ($objItem in $computers)
{
get-message -server (get-qadcomputer $objItem).name | measure-object -
sum size | ft $objitem, count,sum -auto
}

The result I get is not too bad, but not as clean as I would like too
MAIL01-SD Count Sum
--------- ----- ---
86 113708048


MAIL01-VN Count Sum
--------- ----- ---
66 720221


MAIL01-FL Count Sum
--------- ----- ---
38 60242649


What I would like to get is something just a little bit cleaner

Server name Count Sum
----------- ---- -----
MAIL01-SD 86 113708048
MAIL01-VN 66 720221
MAIL01-FL 38 60242649

It would be nice if I can get the sum in MB or GB

and my ultimate goal will be to output this in yellow or red depending
on the sum
let say over 500Mb in the queue (print Orange) over 1GB print in Red

Thank you for your help

My System SpecsSystem Spec
Reply

Thread Tools


Similar Threads
Thread Forum
connect to exchange 2007 and inbox folder size VB Script
Microsoft Readies IT Customers for Windows Vista, the 2007 Office System, Microsoft Exchange Server 2007 Vista News
Microsoft Readies IT Customers for Windows Vista, the 2007 Office System, Microsoft Exchange Server 2007 Vista News
Microsoft Releases Public Betas of Exchange Server 2007 and Forefront Security for Exchange Server Vista News
Microsoft Releases Public Betas of Exchange Server 2007 and Forefront Security for Exchange Server Vista News


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46