SetPITrust Class
- Last UpdatedDec 15, 2025
- 3 minute read
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
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
| Name | Description | |
|---|---|---|
| SetPITrust |
Properties
| Name | Description | |
|---|---|---|
| ApplicationName | Application name for the PI Trust | |
| Connection | Connection to a PI Data Archive for which to get the PI Trust | |
| Description | Description of the PI Trust | |
| Disabled | Mark the PI Trust as Disabled | |
| Identity | PI Identity of the PI Trust | |
| IPAddress | IP Address of the PI Trust | |
| Name | Name of the PI Trust to edit | |
| NetMask | NetMask of the PI Trust | |
| NetworkPath | Hostname or Fully Qualified Domain Name (FQDN) of the PI Trust | |
| WindowsAccount | Windows Account of the PI Trust | |
| 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.