My script is finally working here is a copy for anyone who want. Thanks kix crew i could not have done it without you.CLS
USE i: \\primarynt\public
USE j: \\primarynt\private
USE q: \\ntproxy\ltc_pharmacy
IF (len(@homeshr) > 0)
USE z: "@homeshr" ; <-- f.e. z-drive will be used as homeshr.
ENDIF
IF Ingroup("AWELLEDS") <> 0
USE w: \\posserver\wellstore
USE s: \\primarynt\inpes32
ENDIF
IF Ingroup("ARNAGRP") <> 0
USE n: \\rnaserver\rnapgm
ENDIF
IF Ingroup("AMASTAX") <> 0
USE t: \\rnaserver\rnad
USE h: \\posserver\mas90
ENDIF
IF Ingroup("ARNAMASEDS") <> 0
USE h: \\posserver\mas90
USE n: \\rnaserver\rnapgm
USE s: \\primarynt\inpes32
ENDIF
IF Ingroup("AMEDEDS") <> 0
USE m: \\posserver\medicode
USE s: \\primarynt\inpes32
ENDIF
IF Ingroup("ARNAEDS") <> 0
USE n: \\rnaserver\rnapgm
USE s: \\primarynt\inpes32
ENDIF
IF Ingroup("DOMAIN_ADMINS") <> 0
USE f: \\posserver\util
USE g: \\posserver\cam3
USE h: \\posserver\mas90
USE n: \\rnaserver\rnapgm
USE p: \\posserver\everyone
USE s: \\primarynt\inpes32
USE t: \\rnaserver\rnad
USE w: \\posserver\wellstore
ENDIF
IF SetConsole("MAXIMIZE")
ENDIF
COLOR r+/n
BIG ; Display in BIG character mode
At (2,8) "welcome back,"
At (12,10) @userid
SLEEP 1
exit
batch file
net use /delete * /y
net time \\POSSERVER /SET /Y
sleep 1
\\primarynt\netlogon\kix32.exe \\primarynt\netlogon\log.kix