now, this part seems to be ok, so I don't believe this is the exact failing code.

can't you post the whole code?
or at least from the start until to the first failing code.

then, change the failing code to:
code:
If InGroup ("ESEGUR-LIS-DGTV")
Use O: "\\SERVER-LIS-014\ESEGUR-LIS-DTGV"
If @error = 0
? "Drive O mapeada."
Else
$rc=MessageBox ("A drive O não foi mapeada. Por favor informe o Helpdesk - 110500 ou 21 949 11 69.","Esegur Login Script. ERROR: @error", 0)
EndIf
EndIf

and tell what is the error it shows.
_________________________
!

download KiXnet