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

PI Powershell

DisconnectAFServer Class

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

Disconnect from an AF Server

The Disconnect-AFServer cmdlet closes the connection to a specified AF Server.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellDisconnectAFServer

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

Syntax

[CmdletAttribute("Disconnect", "AFServer", SupportsShouldProcess = true)]
public class DisconnectAFServer : OSICmdletBase
<CmdletAttribute("Disconnect", "AFServer", SupportsShouldProcess := true)>
Public Class DisconnectAFServer
	Inherits OSICmdletBase

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

The DisconnectAFServer type exposes the following members.

Constructors

  NameDescription
Public method
DisconnectAFServer

Properties

  NameDescription
Public property
AFServer

AFServer object for which to close the connection

Examples

Disconnect-AFServer -AFServer (Get-AFServer -Default)

This example will close a connection to the default AF Server

Examples

Disconnect-AFServer -AFServer (Get-AFServer -Name PIAF1)

This example will close a connection to the AF Server "PIAF1"

See Also

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