A powershell method for reprocessing PI Archve Files.
$myPIArchive = Get-PIArchiveFileInfo -Connection $myPi -Name "someArchiveFile"
$myPIArchive.ReprocessArchive -NewFileName $false|"filename" -Type Dynamic|Fixed -OtherCoolOptions
Reading data from a reprocessed archive is significantly faster, so I am adding this as a maintenance-task currently using
cmd /c "%PISERVER%\bin\piarcss.exe -if old -of new"
(For some reason start-process didn't work for me)
I would also love a $myPIArchive.LastReprocessedTime for housekeeping. I am currently storing that in a separate hashtable.
Uhm. Just found Start-PIArchiveReprocess and Get-PIArchiveReprocessHistory, will have a look and see if that is not exactly what I wanted.