Powershell Export to PST with end date
Hi everyone,
I have a request to scipt a migration to PST.
I cannot find the parameter to set an enddate like in the PST Expot Wizard.
Is there even a parameter for this? Maybe I ve missed something
I'm an employee, but I'm just going to tell you that Gertjan's right here. :smileyvery-happy: You can limit the range of the export by using the -SearchString parameter. Just enter a search query that returns the date range you seek. Use the same syntax as you would in EV Search. For instance, to get all the items from June 9, I would write:
Export-EVArchive -ArchiveId 1DE5EA73FEBC737458C7F38AFD7D8706B1110000evserver1.EV.LOCAL -OutputDirectory c:\temp -Format PST -SearchString 'date:<06/10/2018 AND date:>06/08/2018'
Review the Help page for EV Search if you need a refresher on the syntax.
Edit: the "smiley embarrassed" in the example above is a : followed by a >. Not sure why a code block would have smileys enabled, but here's a picture of how that final parameter is supposed to look:
--Chris