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

PI Powershell

SetPITrust Class

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

Set a PI Security Trust

The Add-PITrust cmdlet edits an existing PI Trust

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

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellSetPITrust

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

Syntax

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

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

The SetPITrust type exposes the following members.

Constructors

  NameDescription
Public method
SetPITrust

Properties

  NameDescription
Public property
ApplicationName

Application name for the PI Trust

Public property
Connection

Connection to a PI Data Archive for which to get the PI Trust

Public property
Description

Description of the PI Trust

Public property
Disabled

Mark the PI Trust as Disabled

Public property
Identity

PI Identity of the PI Trust

Public property
IPAddress

IP Address of the PI Trust

Public property
Name

Name of the PI Trust to edit

Public property
NetMask

NetMask of the PI Trust

Public property
NetworkPath

Hostname or Fully Qualified Domain Name (FQDN) of the PI Trust

Public property
WindowsAccount

Windows Account of the PI Trust

Public property
WindowsDomain

Windows Domain of the PI Trust

Examples

Set-PITrust -Name "PIINT1_OPC_IP" -Disabled $true -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Edits the PI Trust "PIINT1_OPC_IP" as disabled on the "PISRV1" PI Data Archive.

Examples

Set-PITrust -Name "PIINT1_OPC_IP" -Identity "InterfacesAndBuffers" -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Edits the PI Trust "PIINT1_OPC_IP" to use the "InterfacesAndBuffers" identity, overwriting the previous setting on "PISRV1" PI Data Archive.

See Also

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