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

PI Powershell

AddPIIdentity Class

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

Get a PI Security Identity

The Get-PIIdentity cmdlet gets PI Security Identity

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

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellAddPIIdentity

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

Syntax

[CmdletAttribute("Add", "PIIdentity", SupportsShouldProcess = true)]
public class AddPIIdentity : OSICmdletBase
<CmdletAttribute("Add", "PIIdentity", SupportsShouldProcess := true)>
Public Class AddPIIdentity
	Inherits OSICmdletBase

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

The AddPIIdentity type exposes the following members.

Constructors

  NameDescription
Public method
AddPIIdentity

Properties

  NameDescription
Public property
Connection

Connection to a PI Data Archive for which to add the PI Identity

Public property
Description

Description of the PI Identity to add

Public property
Disabled

Mark the PI Identity to add as disabled

Public property
DisallowDelete

Disallow deletion of the PI Identity to add

Public property
DisallowUseInMappings

Disallow use in mappings for the PI Identity to add

Public property
DisallowUseInTrusts

Disallow use in mappings for the PI Identity to add

Public property
Name

Name of the PI Identity to add

Examples

Add-PIIdentity -Name "FloorEngineers" -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Add the PI Identity "FloorEngineers" from the "PISRV1" PI Data Archive server.

Examples

Add-PIIdentity -Name "BusinessDomainUsers" -Description "Identity for business domain users" -DisallowUseInTrusts -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Add the PI Identity "BusinessDomainUsers" on the "PISRV1" PI Data Archive server. A description is added. The Identity is also marked to disallow use in trusts, since this identity is intended for business users with valid PI Mappings.

See Also

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