mellimik Posted June 30, 2008 Posted June 30, 2008 (edited) The command:Get-MailboxStatistics -Database MBD1 | where {$_.displayname -notmatch 'system'} | ft displayname,totalitemsize,itemcount | Sort-Object displaynameProduces the following output:out-lineoutput : Object of type "Microsoft.PowerShell.Commands.Internal.Format.FormatEntryData" is not legal or not in the correct sequence. This is likely caused by a user-specified "format-*" command which is conflicting with the default formatting.There's obviously a very simple reason for this, like my syntax being wrong, but then how should I tell Management Shell to format the output from Get-MailboxStatistics based on DisplayName? Edited June 30, 2008 by mellimik
mellimik Posted June 30, 2008 Author Posted June 30, 2008 Ah, okey, sorry guys.. You have to use sort-object BEFORE you format the list with ft
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now