• 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

get-mailboxdatabase -resultsize?

Users viewing this topic: none

Logged in as: Guest
  Printable Version
All Forums >> [Microsoft Exchange 2007] >> General >> get-mailboxdatabase -resultsize? Page: [1]
Login
Message << Older Topic   Newer Topic >>
get-mailboxdatabase -resultsize? - 24.Jan.2012 6:33:25 AM   
s_fretwell

 

Posts: 1
Joined: 23.Jan.2012
Status: offline
When working with an exchange environment with a large number of mailboxes, you can set -resultsize unlimited with the get-mailbox cmdlet. The same option is not available with get-mailboxdatabase, so the query is limited to the first 1000:

"WARNING: By default only the first 1000 items are returned. To change the number of items returned, specify the parameter "-ResultSize". To return all items specify "-ResultSize Unlimited" (Note: Returning all items may take a very long time and consume a large amount of memory depending on the actual number of items). It is not recommended to store the results in a variable; instead pipe the results to another task or script to perform batch changes."

But "-ResultSize Unlimited" does not work with this cmdlet. Is there another method used with get-mailboxdatabase?

Many Thanks

Steve
Post #: 1
RE: get-mailboxdatabase -resultsize? - 25.Jan.2012 4:51:06 AM   
infostellar

 

Posts: 72
Joined: 10.Jun.2009
Status: offline
Please check this article, contains more detail information about this cmdlet :
http://www.viveksharma.com/TECHLOG/archive/2006/05/04/get-mailbox-the-most-popular-cmdlet.aspx

Hope this will help!

Thanks

_____________________________

Regards,

Axel Culver
Exchange Server Recovery | Recover Exchange Database

(in reply to s_fretwell)
Post #: 2
RE: get-mailboxdatabase -resultsize? - 26.Jan.2012 8:18:14 AM   
bigfoot48

 

Posts: 4
Joined: 26.Jan.2012
Status: offline
how about:
get-mailboxdatabase | get-mailboxstatistics | Sort-Object TotalItemSize -Descending | ft DisplayName, {$_.TotalItemSize.Value.ToMB()}

I get 2830 results without error. Perhaps i have set the "modify the maximum number of recipients to display" to 10000 in the Exchange Management Console. Maybe does this help?

(in reply to s_fretwell)
Post #: 3
RE: get-mailboxdatabase -resultsize? - 3.Feb.2012 10:17:14 AM   
barbyf

 

Posts: 17
Joined: 3.Feb.2012
Status: offline
Do you have over 1000 databases? That's the only reason I would see to have to set a -resultsize on that particular powershell command.

However, it would make more sense if you were trying to return all mailboxes on a particular database, such as, get-mailboxdatabase -identity dbname | get-mailbox -resultsize Unlimited

(in reply to s_fretwell)
Post #: 4

Page:   [1] << Older Topic    Newer Topic >>
All Forums >> [Microsoft Exchange 2007] >> General >> get-mailboxdatabase -resultsize? 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