Network - Disconnect

 

Declaration

<AMNETWORK ACTIVITY="disconnect_phone_book" ENTRY="text" />

Related Topics   

Description

Disconnects a previously established Virtual Private Network (VPN) or Dial-Up Network (DUN) connection. This activity can also be used to disconnect all VPN or DUN connections.

Practical Usage

Used to disconnect a specific VPN/DUN connection or all VPN/DUN connections.

Parameters

connection

Property

Type

Required

Default

Markup

Description

Disconnect all connections

       

If enabled, specifies that all open VPN or DUN connections will be disconnected. This is a visual mode parameter used only during design-time, therefore, contains no markup.

Disconnect a specific connection

Text

No

(Empty)

ENTRY="connectionName"

If enabled, denotes that a specific VPN or DUN connection will be disconnected. Enter the name of the connection in the provided text box.

Description

Error Causes

On Error

Example

NOTE:
  • The sample AML code below can be copied and pasted directly into the Steps Panel of the Task Builder.
  • Parameters containing user credentials, files, file paths, and/or other information specific to the task must be customized before the sample code can run successfully.

Description

Disconnect "myConnection" connection.

Copy
<AMNETWORK ACTIVITY="disconnect_phone_book" ENTRY="myConnection" />