11-03-2010 03:21 PM
Link: http://www.enterprisevaultfaq.com/wiki/Query_Orphaned_Vaults
Execute in EnterpriseVaultDirectory Database
SELECT * FROM ExchangeMailboxEntry WHERE LegacyMbxDn LIKE '%marked%'
Solved! Go to Solution.
11-03-2010 04:30 PM
Hi Rajesh,
The Archiving State translates as follows:
0 = Not Enabled 1 = Enabled 2 = Disabled 3 = Re-Link
To view the Archiving State you can use the following:
SELECT count(MbxArchivingState) as '# Mailboxes', MbxArchivingState as 'Archiving State' FROM ExchangeMailboxEntry GROUP BY MbxArchivingState
The Exchange State translates as follows:
0 = Normal 1 = Hidden 2 = Deleted
To view the Exchange State you can use the following:
SELECT count(MbxExchangeState) as '# Mailboxes', MbxExchangeState as 'Exchange State' FROM ExchangeMailboxEntry GROUP BY MbxExchangeStateAlso check out this:
11-03-2010 04:30 PM
Hi Rajesh,
The Archiving State translates as follows:
0 = Not Enabled 1 = Enabled 2 = Disabled 3 = Re-Link
To view the Archiving State you can use the following:
SELECT count(MbxArchivingState) as '# Mailboxes', MbxArchivingState as 'Archiving State' FROM ExchangeMailboxEntry GROUP BY MbxArchivingState
The Exchange State translates as follows:
0 = Normal 1 = Hidden 2 = Deleted
To view the Exchange State you can use the following:
SELECT count(MbxExchangeState) as '# Mailboxes', MbxExchangeState as 'Exchange State' FROM ExchangeMailboxEntry GROUP BY MbxExchangeStateAlso check out this:
11-04-2010 12:54 AM
Hi
The query you mentioned is only to find archives which are "marked for deletion".
Wayne's query will get you what you want.
Cheers
11-06-2010 11:59 PM
Thanks All!
is it possible to list all disabled EV archives?
Regards
Rajesh
11-07-2010 01:21 AM
SELECT * FROM ExchangeMailboxEntry WHERE MbxArchivingState = 2
This lists you all disabled archives.
Cheers
11-07-2010 02:13 AM
Thanks Michel!
I need help with query for below combination.
MbxExchangeState = 2 & MbxArchivingState =1
11-07-2010 02:16 AM
SELECT * FROM ExchangeMailboxEntry WHERE MbxArchivingState = 1 AND MbxExchangeState = 2
11-07-2010 02:36 AM
Thanks Michel!
Will I be able to delete archives using below query?
SELECT *
FROM ExchangeMailboxEntry
WHERE MbxArchivingState = 1 AND MbxExchangeState = 2
GO
UPDATE Archive
SET ArchiveStatus = 4
GO