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

PI Powershell

RenamePIUser Class

  • Last UpdatedDec 15, 2025
  • 3 minute read
RenamePIUser Class

Rename an existing PI User on a PI Data Archive

The Rename-PIUser cmdlet renames an existing PI User on a PI Data Archive

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

NOTE: PI Users and PI Groups have been replaced by PI Identities. PI Identities with PI Mappings (WIS) and PI Trusts should be used to configure PI Data Archive security. See KB00833 for more information.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellOSICmdletBaseWithConnection
            OSIsoft.PowerShellRenamePIUser

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 3.1.1.0 (3.1.1.466)

Syntax

[CmdletAttribute("Rename", "PIUser", SupportsShouldProcess = true)]
public class RenamePIUser : OSICmdletBaseWithConnection
<CmdletAttribute("Rename", "PIUser", SupportsShouldProcess := true)>
Public Class RenamePIUser
	Inherits OSICmdletBaseWithConnection

Dim instance As RenamePIUser
[CmdletAttribute(L"Rename", L"PIUser", SupportsShouldProcess = true)]
public ref class RenamePIUser : public OSICmdletBaseWithConnection
[<CmdletAttribute("Rename", "PIUser", SupportsShouldProcess = true)>]
type RenamePIUser =  
    class
        inherit OSICmdletBaseWithConnection
    end

The RenamePIUser type exposes the following members.

Constructors

  NameDescription
Public method
RenamePIUser

Properties

  NameDescription
Public property
Connection

Connection to a PI Data Archive from which to rename the PI User

(Overrides OSICmdletBaseWithConnectionConnection.)
Public property
ExistingName

Name of the PI User to rename

Public property
NewName

New name of the PI User

Examples

Remove-PIUser -Name "John Doe" -NewName "John M Doe" -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

This example renames an existing PI User "John Doe" to "John M Doe" on the "PISRV1" PI Data Archive.

See Also

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