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

PI Powershell

SetPIPoint Class

  • Last UpdatedDec 15, 2025
  • 4 minute read
SetPIPoint Class

Set the attributes of a PI Point

The Set-PIPoint cmdlet edits point attribute values for a pre-existing PI Point. The attributes to edit are passed in as a hashtable.

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

NOTE: To rename a PI Point, use the Rename-PIPoint cmdlet.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellSetPIPoint

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

Syntax

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

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

The SetPIPoint type exposes the following members.

Constructors

  NameDescription
Public method
SetPIPoint

Properties

  NameDescription
Public property
Attributes

The attributes to set on the existing PI Point. Use Get-Help Set-PIPoint -Examples to see usage.

Public property
Connection

Specifies which connection to a PI Data Archive to use.

Public property
ID

ID of the pre-existing PI Point to edit.

Public property
Name

Name of the pre-existing PI Point to edit.

Public property
PIPoint

Pre-existing PI Point to edit.

Examples

Set-PIPoint -Name BoilerTemp1 -Attributes @{zero="50";span="100";displaydigits="-7"} -Connection $con

This example will edit the PI Point configuration for a pre-existing tag named "BoilerTemp1" by setting the attributes specified by the -Attributes hashtable.

Examples

Set-PIPoint -ID 16 -Attributes @{zero="50";span="100";displaydigits="-7"} -Connection $con

This example will edit the PI Point configuration for a pre-existing tag with ID 16 by setting the attributes specified by the -Attributes hashtable.

Examples

$piPoint | Set-PIPoint -Attributes @{zero="50";span="100";displaydigits="-7"}

Where:

$piPoint = Get-PIPoint -Name Sinusoid -Connection $conn

This example will edit the PI Point configuration for a pre-existing tag with ID 16 by setting the attributes specified by the -Attributes hashtable.

Examples

Set-PIPoint -Name BoilerTemp1 -Attributes @{ptsecurity="piadmin: A(r,w) | piadmins: A(r,w) | PIEngineers: A(r) | PIWorld: A(r)";datasecurity="piadmin: A(r,w) | piadmins: A(r,w) | PIEngineers: A(r) | PIWorld: A(r)"} -Connection $con

This example will set the point and data security strings for the "BoilerTemp1" PI Point. Note that this operation will not append security strings, but instead overwrite any security settings previously set.

See Also

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