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

PI Powershell

EnableAFSecurityIdentity Class

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

Enable an AF Security Identity on an AF Server

The Enable-AFSecurityIdentity cmdlet enables a currently disabled AF Security Identity on an AF Server.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellEnableAFSecurityIdentity

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

Syntax

[CmdletAttribute("Enable", "AFSecurityIdentity", SupportsShouldProcess = true)]
public class EnableAFSecurityIdentity : OSICmdletBase
<CmdletAttribute("Enable", "AFSecurityIdentity", SupportsShouldProcess := true)>
Public Class EnableAFSecurityIdentity
	Inherits OSICmdletBase

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

The EnableAFSecurityIdentity type exposes the following members.

Constructors

  NameDescription
Public method
EnableAFSecurityIdentity

Properties

  NameDescription
Public property
AFSecurityIdentity

AF Security Identity to enable

Public property
CheckIn

Check in changes immediately

Public property
PassThru

Returns objects that were changed. By default, this cmdlet does not generate any output

Examples

Enable-AFSecurityIdentity -CheckIn -AFSecurityIdentity $EngineersIdentity

Where:

$EngineersIdentity = Get-AFSecurityIdentity -Name Engineers -Refresh -AFServer (Get-AFServer -Name "PIAF1")

Enables the currently disabled AF Security Identity "Engineers" from the AF Server "PIAF1". The change is checked in immediately.

Examples

$MyAFIdentity = Enable-AFSecurityIdentity -CheckIn -PassThrough -AFSecurityIdentity $EngineersIdentity

Where:

$EngineersIdentity = Get-AFSecurityIdentity -Name Engineers -Refresh -AFServer (Get-AFServer -Name "PIAF1")

Enables the currently disabled AF Security Identity "Engineers" from the AF Server "PIAF1". The change is checked in immediately. The AF Security Identity that was enabled is sent down the pipeline, and in this example will be stored in variable $DisabledIdentity.

See Also

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