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.
ADMIN RESPONSE
Aug 20, 2022
The StartPIArchiveReprocess Class supports what you need. Please consult our online documentation here:
https://techsupport.osisoft.com/Documentation/PI-Powershell/html/51ab160b-1bc3-43e2-810d-d45214fa4606.htm