Something like this?


$users = Get-Mailbox -Identity wrightst
foreach ($user in $users) { 
        $folderCount = (Get-MailboxFolderStatistics -Identity $user).Count 
        Write-Host "Number of folders = $folderCount for user $user"
}


Number of folders = 65 for user wrightst


---
seth wright (wrigh...@jmu.edu)
lead exchange administrator
540.568.2912 (office)
james madison university




On Nov 15, 2011, at 1:31 PM, Cameron wrote:

> Good afternoon all,
> I'm trying to get the number of folders that a user has in their mailbox. 
> I've tried get--mailboxfolderstatistics -identity "domain\user name" and it 
> returns all the folders in the mailbox. What I would actually like returned is
> Number of folders = x for that user.
>  
> My google-fu is weak today.
>  
> TIA
> Cameron
>  
> ---
> To manage subscriptions click here: 
> http://lyris.sunbelt-software.com/read/my_forums/
> or send an email to listmana...@lyris.sunbeltsoftware.com
> with the body: unsubscribe exchangelist
> 


---
To manage subscriptions click here: 
http://lyris.sunbelt-software.com/read/my_forums/
or send an email to listmana...@lyris.sunbeltsoftware.com
with the body: unsubscribe exchangelist

Reply via email to