Skip to content

Map Drive

Maps a Network Drive into the system.

Properties

NameDescriptionRequired
CredentialSpecifies the NetworkCredential object containing the username, password, and optionally the domain to authenticate the user when mapping the network drive. Required for protected shared folders.
Drive LetterSpecifies the drive letter to be mapped. If not provided, a random available letter will be assigned. The expected format is <letter><colon>, for example: "X:", "y:", "Z:".
ForceTries to force the connection if the drive letter is already being in use.
Mapped DriveThe mapped drive letter if the mapping was successful, it is represented in the format "<letter>:".
ResultReturns true if the drive was successfully mapped, false otherwise.
Shared Drive PathThe shared drive path to connect with.☑️