I have 5 vault stores in the same site and need to export all archives to pst files from a specific Vault Store. Is there a way to use power shell to get Archive ID of all archives in a specific Vault Store , export them to a csv file and then use the csv file in conjuction with the Export-EVArchive command?
You should be able to get the information out of SQL using the following query.
VaultEntryId as ArchiveId,
WHERE VaultStoreEntryId = 'Specific_ID' -- ID of the vault store from the VaultStoreEntry table
You should then be able to process the exports using the following command with the .csv file containing the ArchiveId values.Contents of csv would be
Import-Csv c:\temp\archives.csv | Export-EVArchive -OutputDirectory "c:\Exported Items"
Thanks for the quick response.
Now I am at the point where the command export-evarchive cannot be found.
The term 'Export-EVArchive' is not recognized as the name of a cmdlet, function, script file, or operable program. Chec
k the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:51
+ Import-Csv c:\temp\archives.csv | Export-EVArchive <<<< -OutputDirectory "K:\ExportedItems"
+ CategoryInfo : ObjectNotFound: (Export-EVArchive:String) , CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I am running it in the management shell.
However I am running EV 11 and Export-EVArchive apparently is in EV 12 only.
Is there a way to import the cmdlet from EV 12 to EV 11?
The Export-EVArchive is part of the snapin.dll