04-24-2018 08:46 AM
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?
04-24-2018 10:23 AM
Hi ZS1,
You should be able to get the information out of SQL using the following query.
SELECT
VaultEntryId as ArchiveId,
ArchiveName
FROM ArchiveView
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
ArchiveId
ID1
ID2
ID3
Import-Csv c:\temp\archives.csv | Export-EVArchive -OutputDirectory "c:\Exported Items"
Regards,
Patrick
04-25-2018 08:15 AM
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
04-25-2018 01:35 PM
Hi,
Are you running this in the EV Management shell?
Regards,
Patrick
04-26-2018 02:43 PM
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
04-27-2018 11:21 AM
Hi,
There are other dependencies that make importing into EV 11 impossible. Another option would be consulting/partner to get the data out of the vault store.
Regards,
Patrick