I've been asked to perform a PST export of all the archives to PST.
There is a shell command called Export-EVArchive is there a way to bulk export all the archives using this command? Is there a way to execute it reading the users from a CSV and piping Export-EVArchive and Get-EVArchive?
It will be quicker than executing the export PST wizard?
Thanks in advance.
I think it should be about the same export speed, be pipable to, and accomplish what you are seeking.... but I would not want to do it if you had a lot of archives to export.
Thanks for your answer, I'm interested in the CSV part specially. Can I import a csv with names or addresses and pipe it to export the archives to PST from shell?
Check the Powershell.pdf in the documentation folder. There is an option to use a Get-EVArchive, which allows usage of several options to get the archiveid. You use the archiveid in Export-EVArchive
I am not a Powershell savy person, but I assume you can do what you ask, feed csv to get-evarchive, pipe that to get-evarchive.
Thanks for your answer. I already checked the online documentation that is the same that the PDF one, an I can't see any reference to import a csv. The input information that Get-EVArchive accepts is user/mails/archive names but I don't see the option to import the information from a csv.
I am not an Powershell expert, but it should be possible to use something like the below:
Get-EVarchive -ImportFile c:\temp\file.csv
it is a powershell switch, which allows you to import a file. If you happen to know someone with Powershell knowledge, he/she probably can assist. Althought the GET-EVArchive is EV specific, the format is powershell. That means it should be possible to use 'standard' powershell commands to (as example) execute a command and feed it a list of values from a file.
It is atypical for a PS module like this to directly support importing of a CSV beause of the lego like nature of Powershell. You will need to do something like this, and it should work but it is not quite as simple as you are thinking.. The good news is this is pretty standard in all PS and you will level up your PS chops after you run through a realitively simple test.
Hope this helps.