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

PI Powershell

SetPICollective Class

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

Edit name, description, or ID of a PI Data Archive Collective

The Set-PICollective cmdlet can be used to set a new name, description or ID on an existing PI Data Archive Collective.

The PICollective parameter specifies which PI Data Archive Collective to edit.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellSetPICollective

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

Syntax

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

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

The SetPICollective type exposes the following members.

Constructors

  NameDescription
Public method
SetPICollective

Properties

  NameDescription
Public property
Description

Description to set on the PI Data Archive Collective

Public property
Id

Collective ID to set on the PI Data Archive Collective

Public property
NewName

New name to set on the PI Data Archive Collective

Public property
PICollective

PI Data Archive Collective to edit

Examples

Set-PICollective -NewName "Renamed-Collective" -PICollective (Get-PICollective -Connection $con)

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Renames the PI Data Archive Collective which "PISRV1" is a member to "Renamed-Collective".

Examples

Set-PICollective -NewName "Renamed-Collective" -Description "New corporate PI Collective" -PICollective (Get-PICollective -Connection $con)

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Renames the PI Data Archive Collective which "PISRV1" is a member to "Renamed-Collective" and edits the description to "New corporate PI Collective".

See Also

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