Hello,

I have the follow Code to do the drive maps in my logon script. It's working very well in my network.

Some pieces of the code are in portuguese, 'cause i'm in Brazil.

Code
--------------------------------------

Unmapping Home Área
? "U:"
Use u: /delete /persistent
If @ERROR = 0
" - OK"
Else
" - Erro: @error"
EndIf

? "Mapeando HOME AREA do usuário: " + @USERID " na estação: " + @WKSTA
If (( @WKSTA = "Sultsbase1" ) Or ( @WKSTA = "Sultsbase2") Or ( @WKSTA = "Sultsbase3"))
? "Connecting to Terminal Server."
? "Your Home Area will be mapped by another process."

Else

Use u: "\\sulfs00\@USERID$$"
If @ERROR = 0
" - OK"
Else
" - Erro: @error"
Endif

EndIf

---------------------------------

I hope this help someone.

[ ]'s

Evandro

code: