Question : Powershell script/snippet to count/subtotal Exchange 2003 mail messages by message class

Does anyone know how to use Powershell to count and/or subtotal how many messages of a certain message class are in a given Exchange 2003 mailbox ?

For example, given a mailbox, how many IPM.Note or IPM.Note.SMIME.Multipartsigned or IPM.Schedule.Meeting.Request messages are there.

The solution does not have to subtotal multiple random values, just show how to query a mailbox for a count of a given message class or explain an alternate way of doing it or even reasons against doing it.

Thanks!

Marc

Answer : Powershell script/snippet to count/subtotal Exchange 2003 mail messages by message class

I think you can use WMI. I don't have a 2003 environment to test against so I won't be much help here.

I would suggest using MoW's WMI Explorer http://thepowershellguy.com/blogs/posh/archive/2007/03/22/powershell-wmi-explorer-part-1.aspx on the Exchange Server and find the class.

Once you find the WMI Classes you want you can use Get-WMIObject and Get-Member to work this out.
Random Solutions  
 
programming4us programming4us