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

PI Powershell

NewPIArchive Properties

  • Last UpdatedDec 15, 2025
  • 2 minute read
NewPIArchive Properties

The NewPIArchive type exposes the following members.

Properties

  NameDescription
Public property
ArchiveSet

Specifies the archive set of the archive file to create. This is only supported for PI Data Archive 2015 or later.

0 = Historical

1 = Future

Public property
Connection

Specifies which connection to a PI Data Archive to use

(Overrides OSICmdletBaseWithConnectionConnection.)
Public property
EndTime

The end time of the archive file to create

Public property
Name

The full path and name of the archive file to create

Public property
Size

The size (MB) of the archive file to create

Public property
StartTime

The start time of the archive file to create

Public property
UsePrimaryPath

If specifying only the PI Archive name to create, use this flag to create the PI Archive in the same directory as the current primary archive

Public property
WaitForRegistration

PowerShell will wait to process any further commands until the new archive is registered with the PI Data Archive

Public property
WaitForRegistrationTimeOut

The registration timeout for registering the created PI Archive

Example: "00:01:00" is a timeout of 1 minute

See Also

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