• RSS
  • Twitter
  • FaceBook

Exchange Server Forums

Forums | Register | Login | My Profile | Inbox | RSS RSS icon | My Subscription | My Forums | Address Book | Member List | Search | FAQ | Ticket List | Log Out

Export MailboxStats with Company Name

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2010] >> General >> Export MailboxStats with Company Name Page: [1]
Login
Message << Older Topic   Newer Topic >>
Export MailboxStats with Company Name - 16.May2016 7:00:31 PM   
GJovanovic42

 

Posts: 2
Joined: 16.May2016
Status: offline
Hi Everyone,

I am looking to report on all our Exchange databases and pull out the following info

Get-MailboxStatistics -database "mdb06" |select displayname, itemcount, {$_.TotalItemSize.Value.ToMB()}, Databasename |Export-Csv c:\mdbsize06.csv

This works just fine. However since this is a multi-tenented Exchange I want to include Company Name so that I can sort to my hearts content in Exchange.

Does anyone have any code that can export this?

Any help would e greatly appreciated.

Thanks
Goran
Post #: 1
RE: Export MailboxStats with Company Name - 16.May2016 7:02:18 PM   
GJovanovic42

 

Posts: 2
Joined: 16.May2016
Status: offline
Oh yes, I also tried this

Get-MailboxStatistics -database "mdb06" |ft displayname, itemcount, {$_.TotalItemSize.Value.ToMB()}, Databasename, @{Name="Company";expression={(get-user $_.MailboxGuid).company}}

And that did not work either

Goran

(in reply to GJovanovic42)
Post #: 2

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2010] >> General >> Export MailboxStats with Company Name Page: [1]
Jump to:

New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Follow TechGenix on Twitter