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

General

Property Type Required Default Markup Description
Disconnect all connections --- --- --- --- If enabled, specifies that all open VPN or DUN connections will be disconnected.
NOTE: This parameter does not contain markup and is only displayed in visual mode for task construction and configuration purposes.
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:
  • Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
  • To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.

Description

This sample task disconnects a network connection.

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