Network - Unmap network drive

Declaration

<AMNETWORK ACTIVITY="disconnect" DRIVELETTER="text" />

Related Topics  

Description

Disconnects a currently connected drive from a network path.

NOTE: This activity cannot be executed when the machine is in a logged off state as mapped drives are only available when a user is logged on.

Practical usage

Disconnects a mapped drive.

Parameters

General

Property Type Required Default Markup Description
Drive letter Text Yes Z: DRIVELETTER="X:" The letter to represent the mapped drive to disconnect. The drive letter should always be followed by a colon symbol (for example, X:).

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 the "D" drive.

Copy
<AMNETWORK ACTIVITY="disconnect" DRIVELETTER="D:" />