RemovePITrust Class
- Last UpdatedDec 15, 2025
- 2 minute read
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.PowerShellOSICmdletBaseWithConnection
OSIsoft.PowerShellRemovePITrust
InternalCommand
Cmdlet
PSCmdlet
OSIsoft.PowerShellOSICmdletBase
OSIsoft.PowerShellOSICmdletBaseWithConnection
OSIsoft.PowerShellRemovePITrust
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)
Syntax
[CmdletAttribute("Remove", "PITrust", SupportsShouldProcess = true)] public class RemovePITrust : OSICmdletBaseWithConnection
<CmdletAttribute("Remove", "PITrust", SupportsShouldProcess := true)> Public Class RemovePITrust Inherits OSICmdletBaseWithConnection Dim instance As RemovePITrust
[CmdletAttribute(L"Remove", L"PITrust", SupportsShouldProcess = true)] public ref class RemovePITrust : public OSICmdletBaseWithConnection
[<CmdletAttribute("Remove", "PITrust", SupportsShouldProcess = true)>] type RemovePITrust = class inherit OSICmdletBaseWithConnection end
The RemovePITrust type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| RemovePITrust |
Properties
| Name | Description | |
|---|---|---|
| Connection | Connection to a PI Data Archive from which to remove the PI Trust | |
| Name | Name of the PI Trust to remove |
Examples
Remove-PITrust -Name "PIINT1_OPC_IPAddress" -Connection $conWhere:
$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"
Removes the PI Trust "PIINT1_OPC_IPAddress" from the "PISRV1" PI Data Archive server.