Ok man.

I translate the portuguese parts of the script for you.
Thank's to believe in my solution.

If you have any doubts about the code, tell me and i explain for you.

[s]

code:
 

;Unmapping User Home Área
? "U:"
Use u: /delete /persistent
If @ERROR = 0
" - OK"
Else
" - Error: @error"
EndIf
; I use the /persistent option to have shure about the integrity of drive map.

? "Mapping @USERID HOME AREA in @WKSTA Workstation"
If (( @WKSTA = "Sultsbase1" ) Or ( @WKSTA = "Sultsbase2") Or ( @WKSTA = "Sultsbase3"))
? "You are 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
; In this part i use the following logic. If the user is connecting in the Citrix Metaframe Servers, the User Home Area will be mapped by another batch file, in all other cases the Kix script will map the User Home Area. This script works very well in my entire network.


Ok, that's it.

It's very simple, but work's well.

[s]

VeNoM