Hi,
I'm generating a daily report to be mailed to our team via powershell and I'd like to be able to replicate the "Vault Store Usage Reporter" page to some extent.
I can get the Total Items and Total size of a Vault Store with the SQL query below but I can't find a simple method of getting the number Active Archives.
use vault_store_name
select SUM(ArchivedItems), SUM(ArchivedItemsSize)/1024 from Vault
The following does seem to get a number close to the figure shown in the "Vault Store Usage Reporter" page but I don't know if this is correct or just counting the number of archives, active or not.
use vault_store_name
select COUNT(*) from ArchivePoint
This is the last piece of a puzzle for me and would mean I could finish my Powershell script finally so if anyone could help I'd be very grateful.
Thanks
Kevin