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

PI Powershell

GetPIPointSource Class

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

Get a PI PointSource

The Get-PIPointSource cmdlet gets a PI Point Source from a PI Data Archive. This cmdlet returns the pointsource, pointsource description, as well as the number of points associated with that point source.

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

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellGetPIPointSource

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

Syntax

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

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

The GetPIPointSource type exposes the following members.

Constructors

  NameDescription
Public method
GetPIPointSource

Properties

  NameDescription
Public property
Connection

Connection to a PI Data Archive to use

Public property
Name

Name of the PI PointSource to get

Examples

Get-PIPointSource -Name "OPC" -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Gets the PointSource "OPC" and the number of PI Points associated with that point source from the "PISRV1" PI Data Archive server.

Examples

Get-PIPointSource -Name "*" -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Gets all PointSources and the number of PI Points associated with each point source from the "PISRV1" PI Data Archive server.

See Also

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