DisconnectAFServer Class
- Last UpdatedDec 15, 2025
- 2 minute read
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
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
| Name | Description | |
|---|---|---|
| DisconnectAFServer |
Properties
| Name | Description | |
|---|---|---|
| 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"