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

PI Powershell

SetPIArchiveSetSettings Class

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

Sets the archive set configuration from a PI Data Archive

The Set-PIArchiveSetSettings cmdlet sets the PI Archive configuration settings for a specific archive set on a PI Data Archive.

Set-PIArchiveSetSettings can be used to set specific configuration settings for an archive set by name, or through a PIArchiveSetSettings object.

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

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellSetPIArchiveSetSettings

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)

Syntax

[CmdletAttribute("Set", "PIArchiveSetSettings", SupportsShouldProcess = true)]
public class SetPIArchiveSetSettings : OSICmdletBase
<CmdletAttribute("Set", "PIArchiveSetSettings", SupportsShouldProcess := true)>
Public Class SetPIArchiveSetSettings
	Inherits OSICmdletBase

Dim instance As SetPIArchiveSetSettings
[CmdletAttribute(L"Set", L"PIArchiveSetSettings", SupportsShouldProcess = true)]
public ref class SetPIArchiveSetSettings : public OSICmdletBase
[<CmdletAttribute("Set", "PIArchiveSetSettings", SupportsShouldProcess = true)>]
type SetPIArchiveSetSettings =  
    class
        inherit OSICmdletBase
    end

The SetPIArchiveSetSettings type exposes the following members.

Constructors

  NameDescription
Public method
SetPIArchiveSetSettings

Properties

  NameDescription
Public property
ArchiveSizeMB

Specifies the name of the archive file for which to get detailed information

Public property
Connection

Specifies the connection to a PI Data Archive to use

Public property
Name

Specifies the name of the archive file for which to get detailed information

Public property
SetSettings

Specifies the name of the archive file for which to get detailed information

Public property
ShiftFrequency

Specifies the name of the archive file for which to get detailed information

Examples

Set-PIArchiveFileInfo -SetSettings $settings -Connection $con

Where:

$settings = Get-PIArchiveFileInfo

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Set the PI Archive Set settings to the values set

Examples

Set-PIArchiveFileInfo -Name "HistoricalSet" -ArchiveSizeMB 1024 -ShiftFrequency -Connection (Connect-PIDataArchive -PIDataArchiveMachineName PISRV1)

Set the PI Archive Set settings for the primary archive file (ID=0) on the "PISRV1" PI Data Archive server. Because -ArchiveSet parameter is not explicitly set, a value of 0 (Historical) will be used by default.

See Also

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