Hello,
I have recently taken over this environment. There have been a few practices being followed which I may not be very comfortable carrying forward.
There is a regular activity of disabling mailboxes from Archiving. Because there is no systematic way of provisioning users and enabling their mailboxes for archiving, disabling them becomes a little difficult.
As a clean up process (in terms of practices and processes) concerning the interactions with Enterprise Vault, I was looking to disable all mailboxes which according to the ExchangeMailboxEntry table have their ADMbxFlags value set to "2" (meaning disabled users).
Please share your advice on the SQL Query I have come up with...
Update dbo.ExchangeMailboxEntry
Set MbxArchivingState = '2'
Where MbxArchivingState = '1' and ADMbxFlags = '2' and MbxExchangeState = '1'