Hello all,

I have a login script that maps network drives:

Bellow is an example:

If InGroup ("ESEGUR-LIS-RH-VNCMTS")
Use I: "\\SERVER-LIS-014\ESEGUR-LIS-RH-VNCMTS"
If @error = 0
? "Drive I mapeada."
Else
MessageBox ("A drive I não foi mapeada. Por favor informe o Helpdesk - 110500 ou 21 949 11 69.","Esegur Login Script", 0)
EndIf
;predefine a default do grupo
SetDefaultPrinter("\\SERVER-LIS-014\ESEGUR-LIS-RH-HP LaserJet 4200DTN")
EndIf

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

For members in group ESEGUR-LIS-RH-VNCMTS the drive I: is mapped but for the other users the error occours.

I thought it was the long name from the share but the share of ESEGUR-LIS-RH-VNCMTS is longer than the other...

We've move the DC yesterday and we rename the shares and some groups (not the ones in the example) in the new DC.

We've put the /f in the batch to flush all the cache of groups and the USE "*" /DELETE to delete previous drives.

Thanks

Luis Arnauth