cancel
Showing results for 
Search instead for 
Did you mean: 

Vault Cache query

GTK
Level 6

what is the quickest way to see how many users have vault cache enabled. Currently it is targeted to whole exchange Org (by mistake) and I need to know exactly how many users have it enabled. Is there a SQL query that can find this?

 

thanks

1 ACCEPTED SOLUTION

Accepted Solutions

JesusWept3
Level 6
Partner Accredited Certified

Another way you can do it is look at the AdminJobEntry table.
This query will give you the users who have active vault cache jobs created in the last two days

The job author will give you the physical NT Username of who began the sync , such as MYDOMAIN\UserA

SELECT JobAuthor "User", COUNT(AdminJobEntryId) "Vault Cache Job Count"
FROM AdminJobEntry
WHERE uniqueJobId = 'VaultCacheJob'
  AND StartTime > DateAdd(d, -2, getDate())
GROUP BY JobAuthor

https://www.linkedin.com/in/alex-allen-turl-07370146

View solution in original post

3 REPLIES 3

JesusWept3
Level 6
Partner Accredited Certified

quickest way i believe is

USE EnterpriseVaultDirectory
SELECT COUNT(*) FROM Archive WHERE RetainArchiveHistory > 0

However that will not tell you how many are enabled right at this moment, it will only tell you how many have had it enabled once in their archives life time

https://www.linkedin.com/in/alex-allen-turl-07370146

JesusWept3
Level 6
Partner Accredited Certified

Another way you can do it is look at the AdminJobEntry table.
This query will give you the users who have active vault cache jobs created in the last two days

The job author will give you the physical NT Username of who began the sync , such as MYDOMAIN\UserA

SELECT JobAuthor "User", COUNT(AdminJobEntryId) "Vault Cache Job Count"
FROM AdminJobEntry
WHERE uniqueJobId = 'VaultCacheJob'
  AND StartTime > DateAdd(d, -2, getDate())
GROUP BY JobAuthor

https://www.linkedin.com/in/alex-allen-turl-07370146

Rob_Wilcox1
Level 6
Partner

You could also analyse the IIS logs.

Working for cloudficient.com