cancel
Showing results for 
Search instead for 
Did you mean: 

Powershell Export to PST with end date

CConsult
Moderator
Moderator
Partner    VIP   

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

1 ACCEPTED SOLUTION

Accepted Solutions

I'm an employee, but I'm just going to tell you that Gertjan's right here. Smiley Very 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:

Capture.JPG

 

--Chris

View solution in original post

6 REPLIES 6

GertjanA
Moderator
Moderator
Partner    VIP    Accredited Certified

Hello,

I assume for EV12.3? If you look at the powershell PDf, it seems you can add a search string to the command.

Specifies a search query with which to identify selected items for export. You can use the same query syntax as you might use to look for specific items in Enterprise Vault Search. For example,
the search query "to:mike_smith" selects for export only those items for which he was a recipient. Enclose the query in quotation marks if it contains space characters.
For more information on the query syntax, see the online Help for Enterprise Vault Search

Export-EVArchive [-ArchiveId] <String> [-OutputDirectory] <String> [[-SearchString] [<String>]]

That might be an option. I'm not sure on that, but you never know.

Regards. Gertjan

CConsult
Moderator
Moderator
Partner    VIP   

Hi Gertjan,

yes I have noticed that to but did not find informations about it.

I will try to get to know it. If an Veritas employee could help me out here it would be much appriciated.

I'm an employee, but I'm just going to tell you that Gertjan's right here. Smiley Very 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:

Capture.JPG

 

--Chris

CConsult
Moderator
Moderator
Partner    VIP   

Thank you Chris,

this will help tremendously.

One last question can you please translate the "emberassed smiley" :D 

CConsult
Moderator
Moderator
Partner    VIP   

:>

got it :D

 

is the date DDMMYYYY or MMDDYYYY? guess MMDDYYYY

I did the dates as MM/DD/YYYY, but the indexing engine actually accepts a bunch of different formats. The one we recommend in our help file is YYYY/MM/DD.