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

PI Powershell

GetPICollective Class

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

Get PI Data Archive Collective information from a PI Data Archive

The Get-PICollective cmdlet gets PI Data Archive Collective information from a specified PI Data Archive.

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

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellGetPICollective

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

Syntax

[CmdletAttribute("Get", "PICollective", SupportsShouldProcess = true)]
public class GetPICollective : OSICmdletBase
<CmdletAttribute("Get", "PICollective", SupportsShouldProcess := true)>
Public Class GetPICollective
	Inherits OSICmdletBase

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

The GetPICollective type exposes the following members.

Constructors

  NameDescription
Public method
GetPICollective

Properties

  NameDescription
Public property
Connection

Connection to a PI Data Archive from which to get the PI Data Archive Collective information

Examples

Get-PICollective -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Gets the PI Data Archive Collective information from the "PISRV1" PI Data Archive server.

Examples

(Get-PICollective -Connection $con).CurrentRole.Role

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Uses the PI Data Archive Collective information to get the current role of the "PISRV1" PI Data Archive Server.

See Also

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