views:

87

answers:

1

Hi to all,

i need to run exchange cmdlets from a c# console application.

i followed with success the guide from http://msdn.microsoft.com/en-us/library/bb332449.aspx but only for the basic command and one parameter.

the cmdlets i need to run is:

Get-MailboxStatistics -server evs | Select servername, StorageGroupName,databasename,@{expression={$_.TotalItemSize.value.ToKB()}},ItemCount,mailboxguid

In detail i cannot specify the field that i need after the select "command" and i don't know how can i pass to cmdlets, the expression "@{expression={$_.TotalItemSize.value.ToKB()}}".

Is there a way to do it in managed code ?

Thank you.

Fabio.

A: 

Take a look at the Redemption library: http://www.dimastr.com/redemption/

I'm not sure if it satisfies your specific requirements but it does expose a lot of information through managed code.

David Neale
No, this doesn't help me. thank you.