Network - Unmap network drive |
Declaration
<AMNETWORK ACTIVITY="disconnect" DRIVELETTER="text" /> |
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 because 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 (i.e. X:). |
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
This sample task disconnects the "D" drive.
Copy
<AMNETWORK ACTIVITY="disconnect" DRIVELETTER="D:" />