GetPIPointSource Class
- Last UpdatedDec 15, 2025
- 3 minute read
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
InternalCommand
Cmdlet
PSCmdlet
OSIsoft.PowerShellOSICmdletBase
OSIsoft.PowerShellOSICmdletBaseWithConnection
OSIsoft.PowerShellGetPIPointSource
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)
Syntax
[CmdletAttribute("Get", "PIPointSource", SupportsShouldProcess = true)] public class GetPIPointSource : OSICmdletBaseWithConnection
<CmdletAttribute("Get", "PIPointSource", SupportsShouldProcess := true)> Public Class GetPIPointSource Inherits OSICmdletBaseWithConnection Dim instance As GetPIPointSource
[CmdletAttribute(L"Get", L"PIPointSource", SupportsShouldProcess = true)] public ref class GetPIPointSource : public OSICmdletBaseWithConnection
[<CmdletAttribute("Get", "PIPointSource", SupportsShouldProcess = true)>] type GetPIPointSource = class inherit OSICmdletBaseWithConnection end
The GetPIPointSource type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| GetPIPointSource |
Properties
| Name | Description | |
|---|---|---|
| Connection | Connection to a PI Data Archive to use | |
| Name | Name of the PI PointSource to get |
Examples
Get-PIPointSource -Name "OPC" -Connection $conWhere:
$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 $conWhere:
$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.