11-30-2011 05:10 AM
Hi,
Do anyone have a query that will list both the old and new archiveid for a user?
The old or new is easy to find using the exchangemailboxentry table but getting both seem to be trickier ;)
Br,
Fredrik
Solved! Go to Solution.
11-30-2011 09:09 AM
Personally i'd use this query
USE EnterpriseVaultDirectory SELECT AH.VaultName "Source Archive Name", AH.VaultEntryID "Source Archive ID", AH.SiteName "Source Site Name", AH.VaultStoreName "Source Vault Store", AMH.DestinationVaultName "Destination Vault Name", AMH.DestinationVaultEntryId "Destination Archive ID", AMH.DestinationSiteName "Destination Site Name", AMH.DestinationVaultStoreName "Destination Vault Store" FROM ArchiveHistory AH, ArchiveMoveHistory AMH WHERE AH.ArchiveHistoryIdentity = AMH.ArchiveHistoryIdentity AND AH.VaultName = 'my User'
11-30-2011 05:35 AM
You may instead try the following query which would give you the date when the user as enabled for archiving , through which you can determine if the user is old or new
http://www.symantec.com/business/support/index?page=content&id=TECH55159
11-30-2011 07:34 AM
Hi Fredrik,
I believe this SQL query will get you what you are looking for:
select archive.archivename, root.vaultentryid from archive, root
where archivename like '%<archive name>%' and archive.rootidentity = root.rootidentity
Hope this helps!
-Chris
11-30-2011 07:44 AM
use enterprisevaultdirectory
select * from archive where archivename like'%surname%'
The query will list all archives for that user (just edit the surname) and you can then view each of the VaultID's.
11-30-2011 08:06 AM
Thanks guys, that solves it to 99%.
The only problem left is if the display name is the same but it's actually two different users.
So it would be great to be able to match against e.g. MbxNTUser or other more "unique" attribute.
The only other column that I can see that can be used in the archive table is the rootidentity.
Is there any way to get the different root identities matching something more unique than display name?
Thanks
11-30-2011 09:09 AM
Personally i'd use this query
USE EnterpriseVaultDirectory SELECT AH.VaultName "Source Archive Name", AH.VaultEntryID "Source Archive ID", AH.SiteName "Source Site Name", AH.VaultStoreName "Source Vault Store", AMH.DestinationVaultName "Destination Vault Name", AMH.DestinationVaultEntryId "Destination Archive ID", AMH.DestinationSiteName "Destination Site Name", AMH.DestinationVaultStoreName "Destination Vault Store" FROM ArchiveHistory AH, ArchiveMoveHistory AMH WHERE AH.ArchiveHistoryIdentity = AMH.ArchiveHistoryIdentity AND AH.VaultName = 'my User'
12-01-2011 04:17 AM
You're the man JW2 ;)