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

PI Powershell

RemovePITrust Class

  • Last UpdatedDec 15, 2025
  • 2 minute read
RemovePITrust Class

Remove a PI Security Trust

The Remove-PITrust cmdlet removes a PI Trust

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

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellRemovePITrust

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

Syntax

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

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

The RemovePITrust type exposes the following members.

Constructors

  NameDescription
Public method
RemovePITrust

Properties

  NameDescription
Public property
Connection

Connection to a PI Data Archive from which to remove the PI Trust

Public property
Name

Name of the PI Trust to remove

Examples

Remove-PITrust -Name "PIINT1_OPC_IPAddress" -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Removes the PI Trust "PIINT1_OPC_IPAddress" from the "PISRV1" PI Data Archive server.

See Also

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