RenamePITrust Class
- Last UpdatedDec 15, 2025
- 2 minute read
Rename a PI Security Trust
The Rename-PITrust cmdlet renames 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.PowerShellRenamePITrust
InternalCommand
Cmdlet
PSCmdlet
OSIsoft.PowerShellOSICmdletBase
OSIsoft.PowerShellRenamePITrust
Namespace: OSIsoft.PowerShell
Assembly: OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)
Syntax
[CmdletAttribute("Rename", "PITrust", SupportsShouldProcess = true)] public class RenamePITrust : OSICmdletBase
<CmdletAttribute("Rename", "PITrust", SupportsShouldProcess := true)> Public Class RenamePITrust Inherits OSICmdletBase Dim instance As RenamePITrust
[CmdletAttribute(L"Rename", L"PITrust", SupportsShouldProcess = true)] public ref class RenamePITrust : public OSICmdletBase
[<CmdletAttribute("Rename", "PITrust", SupportsShouldProcess = true)>] type RenamePITrust = class inherit OSICmdletBase end
The RenamePITrust type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| RenamePITrust |
Properties
| Name | Description | |
|---|---|---|
| Connection | Connection to a PI Data Archive for which to rename the PI Trust | |
| ExistingName | Connection to a PI Data Archive for which to get the PI Trust | |
| NewName | New name for the PI Trust |
Examples
Rename-PITrust -ExistingName "PIINT1Trust" -NewName "PIINT1_OPCInt_IP" -Connection $con
Where:
$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"
Renames the "PIINT1Trust" as "PIINT1_OPCInt_IP" on the PI Data Archive server "PISRV1"