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

PI Powershell

RemoveAFSecurityMapping Class

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

Remove an AF Security Mapping from an AF Server

The Remove-AFSecurityMapping cmdlet removes an existing AF Security Mapping from an AF Server.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellRemoveAFSecurityMapping

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

Syntax

[CmdletAttribute("Remove", "AFSecurityMapping", DefaultParameterSetName = "Name", 
	SupportsShouldProcess = true)]
public class RemoveAFSecurityMapping : OSICmdletBase
<CmdletAttribute("Remove", "AFSecurityMapping", DefaultParameterSetName := "Name", 
	SupportsShouldProcess := true)>
Public Class RemoveAFSecurityMapping
	Inherits OSICmdletBase

Dim instance As RemoveAFSecurityMapping
[CmdletAttribute(L"Remove", L"AFSecurityMapping", DefaultParameterSetName = L"Name", 
	SupportsShouldProcess = true)]
public ref class RemoveAFSecurityMapping : public OSICmdletBase
[<CmdletAttribute("Remove", "AFSecurityMapping", DefaultParameterSetName = "Name", 
	SupportsShouldProcess = true)>]
type RemoveAFSecurityMapping =  
    class
        inherit OSICmdletBase
    end

The RemoveAFSecurityMapping type exposes the following members.

Constructors

  NameDescription
Public method
RemoveAFSecurityMapping

Properties

  NameDescription
Public property
AFSecurityMapping

AF Security Mapping to remove

Public property
AFServer

AF Server from which to remove the AF Security Mapping

Public property
CheckIn

Check in changes immediately

Public property
ID

GUID of the AF Security Mapping to remove

Public property
Name

Name of the AF Security Mapping to remove

Examples

Remove-AFSecurityMapping -Name "domain\testuser" -CheckIn -AFServer (Get-AFServer -Name PIAF1)

Removes an existing AF Security Mapping called "domain\testuser" from the AF Server "PIAF1". The change is checked in immediately.

Examples

Remove-AFSecurityMapping -AFSecurityMapping $TestUser -CheckIn -AFServer (Get-AFServer -Name PIAF1)

Where:

$TestUser = Get-AFSecurityMapping -Name "domain\testuser" -Refresh -AFServer (Get-AFServer -Name "PIAF1")

Removes an existing AF Security Mapping called "domain\testuser" from the AF Server "PIAF1". The change is checked in immediately.

See Also

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