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

PI Powershell

RenamePITrust Class

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

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

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

  NameDescription
Public method
RenamePITrust

Properties

  NameDescription
Public property
Connection

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

Public property
ExistingName

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

Public property
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"

See Also

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