![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| 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. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| Guest | 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 Specs![]() |
![]() |
| Thread Tools | |
| |