Exchange cmdlets from c#
- by poffio
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.