Exchange 2007 EMS Script for hidden mailboxes
Hi Can anybody provide me with an EMS script to do the following: 1. Find all hidden & disabled mailboxes in a storage group Regards
July 4th, 2012 7:47am

Mailboxes are under databases. So you will have to specify for the database. Hidden: Get-MailboxDatabase -Storagegroup <SGNAME> | Get-Mailbox -Resultsize unlimited | where {$_.HiddenFromAddressListsEnabled -eq $true} | select DisplayName,Database Disabled: Get-MailboxDatabase -StorageGroup <SGName> | Get-Mailboxstatistics | where{$_.Disconnectdate -ne $null} | Select DisplayName,Database
Free Windows Admin Tool Kit Click here and download it now
July 4th, 2012 8:07am

Hi If post is helpful to your issue, please mark the case.Terence Yu TechNet Community Support
July 5th, 2012 10:39pm

Thanks very useful is there a way to pipe to actual size of the hidden or disabled mailbox
Free Windows Admin Tool Kit Click here and download it now
July 8th, 2012 2:41am

Yes, below are the extensions to get the mailbox size as well Hidden: Get-MailboxDatabase -Storagegroup <SGNAME> | Get-Mailbox -Resultsize unlimited | where {$_.HiddenFromAddressListsEnabled -eq $true} | Get-MailboxStatistics | select DisplayName,Database,TotalItemSize Disabled: Get-MailboxDatabase -StorageGroup <SGName> | Get-Mailboxstatistics | where{$_.Disconnectdate -ne $null} | Select DisplayName,Database,TotalItemSize To show the size in KB or MB using the expression as shown in below example: Get-MailboxDatabase -StorageGroup <SGName> | Get-Mailboxstatistics | where{$_.Disconnectdate -ne $null} | Select DisplayName,Database,@{expression={$_.TotalItemSize.Value.ToKB()}}
July 8th, 2012 9:20am

Hi Do you have anything update on your issue ?Terence Yu TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
July 9th, 2012 10:19pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics