Skip to content

Unmap Drive

Unmaps one or all mapped network drives from the system.

Properties

NameDescriptionRequired
All DrivesWhen set to true, unmaps all mapped network drives. When false, only the drive specified in DriveLetter is unmapped.
Drive LetterSpecifies the drive letter of the mapped drive to be unmapped. The required format is <letter><colon>, for example: "X:", "y:", "Z:". This property is ignored when AllDrives is set to true.
ResultReturns true if the drive was successfully unmapped, false otherwise. For multi-drive operations, returns true only if all mapped drives were successfully unmapped.