07-28-2009 08:10 PM
Solved! Go to Solution.
07-29-2009 12:44 AM
----------------------------------------------------------------- -- -- Author: Wayne Humphrey -- Date: 29th July 2009 -- ------------- Notes ------------- -- -- Get all List of all None Enabled Mailboxs and display the following: -- -- Mailbox -- Mailbox Over Quotas (if using exchnage quotas) -- Mailbox Size (MB) -- Number of Items (Mailbox) -- Exchange Server -- ----------------------------------------------------------------- Use EnterpriseVaultDirectory SELECT left(MbxDisplayName,20) as 'Mailbox', MBxSize/1000 - MbxSendLimit/1000 as 'Over Send (MB)', MbxWarningLimit/1000 as 'Warning (MB)', MbxSendLimit/1000 as 'Send (MB)', MbxReceiveLimit as 'Receive (MB)', MbxSize/1000 as 'Mbx Size (MB)', MbxItemCount as '#Items (Mailbox)', left(ExchangeComputer,17)as 'Exchange Server', MbxExchangeState as 'Exchange State' FROM EnterpriseVaultDirectory.dbo.ExchangeMailboxEntry as EME, EnterpriseVaultDirectory.dbo.ExchangeServerEntry as ESE WHERE EME.MbxArchivingState = 0 AND EME.ExchangeServerIdentity = ESE.ExchangeServerIdentity ORDER by EME.MBxSize desc
If you are using quotas please chnage the WHERE to
WHERE WME.MBxSendLimit > 0 AND EME.MbxArchivingState = 0 AND EME.MBxSize > EME.MbxSendLimit AND EME.ExchangeServerIdentity = ESE.ExchangeServerIdentity ORDER by EME.MBxSize - EME.MbxSendLimit desc
--wayne
07-28-2009 11:38 PM
07-29-2009 12:44 AM
----------------------------------------------------------------- -- -- Author: Wayne Humphrey -- Date: 29th July 2009 -- ------------- Notes ------------- -- -- Get all List of all None Enabled Mailboxs and display the following: -- -- Mailbox -- Mailbox Over Quotas (if using exchnage quotas) -- Mailbox Size (MB) -- Number of Items (Mailbox) -- Exchange Server -- ----------------------------------------------------------------- Use EnterpriseVaultDirectory SELECT left(MbxDisplayName,20) as 'Mailbox', MBxSize/1000 - MbxSendLimit/1000 as 'Over Send (MB)', MbxWarningLimit/1000 as 'Warning (MB)', MbxSendLimit/1000 as 'Send (MB)', MbxReceiveLimit as 'Receive (MB)', MbxSize/1000 as 'Mbx Size (MB)', MbxItemCount as '#Items (Mailbox)', left(ExchangeComputer,17)as 'Exchange Server', MbxExchangeState as 'Exchange State' FROM EnterpriseVaultDirectory.dbo.ExchangeMailboxEntry as EME, EnterpriseVaultDirectory.dbo.ExchangeServerEntry as ESE WHERE EME.MbxArchivingState = 0 AND EME.ExchangeServerIdentity = ESE.ExchangeServerIdentity ORDER by EME.MBxSize desc
If you are using quotas please chnage the WHERE to
WHERE WME.MBxSendLimit > 0 AND EME.MbxArchivingState = 0 AND EME.MBxSize > EME.MbxSendLimit AND EME.ExchangeServerIdentity = ESE.ExchangeServerIdentity ORDER by EME.MBxSize - EME.MbxSendLimit desc
--wayne
07-29-2009 04:16 AM
07-29-2009 04:43 AM