[Exchange] 사용자 사서함 폴더 확인
Mail2019. 12. 23. 19:12
전체 사용자 사서함 폴더 수 확인
get-mailbox -RecipientTypeDetails usermailbox -ResultSize unlimited | Get-mailboxFolderStatistics -FolderScope Inbox | GroupInbox, 현재 보이는 사용자 사서함 기준 전체 폴더 수량
get-mailbox -RecipientTypeDetails usermailbox -ResultSize unlimited | Where {$_.HiddenFromAddressListsEnabled -eq $False} | Get-mailboxFolderStatistics -FolderScope Inbox | Group
사용자별 사서함 폴더 카운트
$Mailboxes = Get-Mailbox
$Results = foreach( $Mailbox in $Mailboxes ){
$Folders = $MailBox |
Get-MailboxFolderStatistics |
Measure-Object |
Select-Object -ExpandProperty Count
New-Object -TypeName PSCustomObject -Property @{
Username = $Mailbox.Alias
FolderCount = $Folders
}
}
$Results |
Select-Object -Property Username, FolderCount
출처 : https://community.spiceworks.com/topic/1824271-use-get-mailboxfolderstatistics-to-get-total-folder-count