For the complete documentation index, see llms.txt. This page is also available as Markdown.

Custom VPN (PowerShell)

This article details the many settings and options available for Custom VPN (PowerShell) VPN entries in Remote Desktop Manager.

SETTINGS

DESCRIPTION

Name

The name of the entry.

Folder

The folder where the entry is located.

Display

How the entry opens. VPN entries open as External, and the list cannot be changed.

Host

Where the host of the entry comes from. Select a host mode from the list. When the host does not come from the entry itself, the Host field of the Credentials tab is unavailable.

Credentials

How the credentials of the entry are provided. Select a credential mode from the list. When the credentials do not come from the entry itself, the Username, Domain, and Password fields of the Credentials tab are unavailable.

VPN type

The type of VPN of the entry. PowerShell script is selected for this entry. Selecting another type replaces the settings of the Connection tab.

Connection

Connect

SETTINGS
DESCRIPTION

Connect mode

Select what runs to connect the VPN:

  • PowerShell — run the script entered in the script editor. Click Edit to open the script in a separate editor. The Edit button is not supported on Linux.

  • Link — run a PowerShell entry or a PowerShell session tool selected from the list. A linked entry is required.

Disconnect

SETTINGS
DESCRIPTION

Connect mode

Select what runs to disconnect the VPN:

  • PowerShell — run the script entered in the script editor. Click Edit to open the script in a separate editor. The Edit button is not supported on Linux.

  • Link — run a PowerShell entry or a PowerShell session tool selected from the list. A linked entry is required.

Credentials

SETTINGS
DESCRIPTION

Host

The host of the VPN. Type $VPN_HOST$ in a parameter to use this value.

Username

The username of the VPN. Type $VPN_USERNAME$ in a parameter to use this value.

Domain

The domain of the VPN. Type $VPN_DOMAIN$ in a parameter to use this value.

Password

The password of the VPN. Type $VPN_PASSWORD$ in a parameter to use this value. Unavailable when a policy disables password saving in vaults.

Parameters

SETTINGS
DESCRIPTION

Parameter #1 to Parameter #5

Up to five values to pass to the scripts. In a script, type $PARAMETER1$ for the first parameter, $PARAMETER2$ for the second, and so on.

Advanced

SETTINGS
DESCRIPTION

Wait interval (sec)

The number of seconds to wait, from 0 to 999999.

Run as administrator

Run the script with administrator privileges.

Run in background

Run the script in the background.

Wait for exit

Wait for the script to exit.

Advanced

SETTINGS
DESCRIPTION

Go offline on connection

Switch Remote Desktop Manager to offline mode when the VPN connects.

Close connection after (min)

Select the check box to close the VPN automatically after the set number of minutes, from 0 to 4320. The value is available when the check box is selected.

Detect reachable host in wait

While waiting for the VPN, detect whether the host can already be reached.

VPN reconnect mode

Select the reconnect behavior of the VPN:

  • Default

  • Reconnect VPN

  • Leave VPN open

Go online on disconnect after (sec)

Select the check box to switch Remote Desktop Manager back to online mode the set number of seconds after the VPN disconnects, from 0 to 180.

Use adapter to detect connection

Use the network adapter to detect whether the VPN is connected.

After execution, wait

SETTINGS
DESCRIPTION

After execution, wait

Select what Remote Desktop Manager waits for after the VPN is started:

  • Delay — wait the set number of seconds, from -1 to 180.

  • For IP on adapter — wait for the network adapter to receive an IP address. Enter the adapter name or the device name, or leave the field blank. Click the browse button to select an adapter.

Wait a maximum of (sec)

The maximum time to wait for the IP address, from -1 to 180 seconds. Visible when For IP on adapter is selected.

Then delay (ms)

An additional delay once the IP address is received, from -1 to 180000 milliseconds. Visible when For IP on adapter is selected.

Commands

SETTINGS
DESCRIPTION

Commands

The list of VPN commands, with their Name, After connection command, and Before disconnecting command. Use the Add, Edit, Delete, Move up, and Move down buttons to manage the list. The commands are available only when After execution, wait is set to For IP on adapter, and are not supported on macOS.

After connecting, VPN command enabled

Run the after connection commands once the VPN is connected.

Before disconnecting, VPN command enabled

Run the before disconnecting commands before the VPN is disconnected.

Run routes in batch (forces elevated privileges)

Run the route commands together in a batch. This requires elevated privileges.

Last updated

Was this helpful?