Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Powershell

GetPIArchiveReprocessHistory Class

  • Last UpdatedDec 15, 2025
  • 3 minute read
GetPIArchiveReprocessHistory Class

Get the history of archives reprocessed via online archive reprocessing

The Get-PIArchiveReprocessHistory cmdlet gets the history of finished online archive reprocess requests that were made. The history returned can be filtered by count, start/end time, or name of archive file.

Note that this cmdlet will only return reprocess history for archives reprocessed via online archive reprocessing. Reprocess history for archives reprocessed via the offline piarchss.exe tool is not available.

The connection parameter specifies which connection to a PI Data Archive to use.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellOSICmdletBaseWithConnection
            OSIsoft.PowerShellGetPIArchiveReprocessHistory

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)

Syntax

[CmdletAttribute("Get", "PIArchiveReprocessHistory", SupportsShouldProcess = true)]
public class GetPIArchiveReprocessHistory : OSICmdletBaseWithConnection
<CmdletAttribute("Get", "PIArchiveReprocessHistory", SupportsShouldProcess := true)>
Public Class GetPIArchiveReprocessHistory
	Inherits OSICmdletBaseWithConnection

Dim instance As GetPIArchiveReprocessHistory
[CmdletAttribute(L"Get", L"PIArchiveReprocessHistory", SupportsShouldProcess = true)]
public ref class GetPIArchiveReprocessHistory : public OSICmdletBaseWithConnection
[<CmdletAttribute("Get", "PIArchiveReprocessHistory", SupportsShouldProcess = true)>]
type GetPIArchiveReprocessHistory =  
    class
        inherit OSICmdletBaseWithConnection
    end

The GetPIArchiveReprocessHistory type exposes the following members.

Constructors

  NameDescription
Public method
GetPIArchiveReprocessHistory

Properties

  NameDescription
Public property
Connection

Connection to a PI Data Archive from which to retrieve reprocess history

(Overrides OSICmdletBaseWithConnectionConnection.)
Public property
Count

Maximum number of history records to return

Public property
EndTime

End time for which to return archive reprocess history

Public property
Name

Name of the archive to return

Public property
StartTime

Start time for which to return archive reprocess history

Examples

Get-PIArchiveReprocessHistory -Connection (Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1")

Gets the entire archive reprocessing history from the "PISRV1" PI Data Archive.

Examples

Get-PIArchiveReprocessHistory -StartTime (ConvertFrom-AFRelativeTime *-1mo) -EndTime (ConvertFrom-AFRelativeTime *) -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Gets the archive reprocessing history from the "PISRV1" PI Data Archive for the last month.

See Also

TitleResults for “How to create a CRG?”Also Available in