Announcement

Collapse
No announcement yet.

Scripts Exchange 2007

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Scripts Exchange 2007

    I was wondering if anyone had any knowledge of scripting in exchange 2007, I have created a script to extract the following info from our exchange databases and export to a csv, I have most of the fields working apart from total message count, which although it displays the heading there is no data below it

    Get-MailboxStatistics | Sort TotalItemSize -Descending | select-object DisplayName, @{label="Total Size (MB)";expression={$_.TotalItemSize.Value.ToMB()}}, @{label="Deleted Item Size (MB)";expression={$_.TotalDeletedItemSize.Value.To MB()}},@{label="TotalItems";expression={$_.ItemCou nt()}} | Export-CSV "c:\monthly mailbox details.csv"

  • #2
    Re: Scripts Exchange 2007

    \you've got a space in your expression.

    @{label="TotalItems";expression={$_.ItemCou nt()}}


    should be
    @{label="TotalItems";expression={$_.ItemCount()}}
    Please do show your appreciation to those who assist you by leaving Rep Point https://www.petri.com/forums/core/im.../icon_beer.gif

    Comment

    Working...
    X