Link to home
Start Free TrialLog in
Avatar of commeng
commengFlag for United States of America

asked on

Citrix Drive Mapping

I have a user and everytime he logs into Citrix his user directory becomes mapped for everyone.  The only way to disconnect this drive is to reboot the server and delete his profile.  Is there a way to:

1.  Disconnect this directory without rebooting the server?
2.  Prevent this from happening in the future?

Thank you
Avatar of arunexp
arunexp
Flag of United States of America image

one way is you can remove the user home drive from AD. if he is a roaming user reconfigure his roaming profile.
Avatar of commeng

ASKER

Not a roaming profile and the home drive is not configured in AD, there is a login script that runs.
check the permissions on the folder/directory...  Make sure everyone, domain users, or anonymous are allowed access.
Avatar of commeng

ASKER

It is his user directory, I don't want everyone to have access it.
LOL - sorry that was my bad...

I mean to say "are Not allowed access"

fat fingers I have
Avatar of commeng

ASKER

They have no access to his drive, which is part of the problem, basically his user drive gets mapped to the u: drive and then anyone that logs into Citrix is mapped to his user directory instead of theirs and have no access.
Ok, can you post the login script so I can take a look?
Avatar of commeng

ASKER

@Echo Off

IF EXIST O:\NUL NET USE O: /DELETE > NUL
NET USE  O: \\ceifs00\CEI_Operations /PERSISTENT:NO > NUL

IF EXIST P:\NUL NET USE P: /DELETE > NUL
NET USE  P: \\ceifs00\CEI_Engineering /PERSISTENT:NO > NUL

IF EXIST U:\NUL NET USE U: /DELETE > NUL
NET USE  U: \\ceifs00\users\%username% /PERSISTENT:NO > NUL

IF EXIST T:\NUL NET USE T: /DELETE > NUL
NET USE  T: \\mail\autocad_support /PERSISTENT:NO > NUL


ifmember "commeng\BSW"
                         
if errorlevel=1 (net use Q: "\\ceifs00\bsw$" /persistent:no)
goto One

:One

ifmember "commeng\HomeDir"
                         
if errorlevel=1 (net use U: "\\ceifs00\users\lbrody" /persistent:no)
goto Two

:Two

ifmember "commeng\portal"
                         
if errorlevel=1 (net use r: "\\ceifs00\CEI_Engineering\CEI Engineering Resources\CEI_PORTAL_Files\live" /persistent:no)
goto Three

:Three

ifmember "commeng\IT Dept"
                         
if errorlevel=1 (net use S: "\\ceifs00\IT$" /persistent:no)
goto Done

:Done
ifmember "commeng\HomeDir"
                         
if errorlevel=1 (net use U: "\\ceifs00\users\lbrody" /persistent:no)
goto Two


Is "lbrody" the particular user whose folder is visible to everyone?
Avatar of commeng

ASKER

Lbrody is the owner of the company and his directory is not visibile to everyone.  He is also NOT the person who is taking over the u: drive in Citrix.
Ok...

Have you already tried to map the drive via the command line?
Avatar of commeng

ASKER

When it is stuck yes, it does not work.  Everything works fine until this user logs in.  I have reset hs account, deleted his profile, everything nothing works.  I need to figure out how to work around this problem without bouncing the server.
Are you adverse to mapping the home directory via AD?
ASKER CERTIFIED SOLUTION
Avatar of dnsguru44
dnsguru44
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
For testing purposes, you can create a test OU, create a new test user in AD, and have the modified script run only for this OU via GPO