Exchange cmdlets from c#

Posted by poffio on Stack Overflow See other posts from Stack Overflow or by poffio
Published on 2010-04-26T09:23:17Z Indexed on 2010/04/26 9:33 UTC
Read the original article Hit count: 301

Filed under:
|
|

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.

© Stack Overflow or respective owner

Related posts about cmdlets

Related posts about c#