Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

DriveMapAdd - Can't map a server

$
0
0
Hello everyone.

I have a problem mapping a share with DriveMapAdd function.
Here is a little piece of the code.

[ autoit ]      
local $server = "\\print\NETLOGON" DriveMapAdd("X:", $server, 0, $user_domain, $password) If @error = 0 Then MsgBox(64, "LPT1: is mapped to", "Mapeamento criado com sucesso!") If @error = 1 Then MsgBox(16, "ERROR", "Undefined/Other error.") If @error = 2 Then MsgBox(16, "ERROR", "Access to the remote share was denied.") If @error = 3 Then MsgBox(64, "WARNING", "The device is already assigned.") If @error = 4 Then MsgBox(16, "ERROR", "Invalid device name.") If @error = 5 Then MsgBox(16, "ERROR", "Invalid remote share.") If @error = 6 Then MsgBox(16, "ERROR", "Invalid password.")

I'm trying to map the \\print\NETLOGON share to the drive X:\ but i'm getting the error Undefined/Other error.
I think the problem is the server itself, because I have 4 servers more and i can map them normally.

By the way, the server i'm trying to map is a Windows Server 2008 R2.

Can i get some help with this situation?

Best regards,
Sardinha

Viewing all articles
Browse latest Browse all 12506

Trending Articles