PST export using powershell
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.
David
Sorry for the necromancy, but I wanted to post the script I finally used and I forgot until now:
$ArchiveList = Get-Content C:\ExportTest\Test.txt
Foreach<$ArchiveID in $ArchiveList> <Export-EUArchive -Archiveid $ArchiveID -OutputDirectory "\\(UNC or local path)\$Archive.pst" -Format PST -MaxThreads 100 -SearchString
"date=<01/06/2007 AND date :>01/01/2007">The first line reads the Archive IDs from a txt file and then export according to some properties. I hope it helps someone else.