Solved

Disconnected Network Drive in Terminal Server Sessions

Posted on 2008-06-19
10
1,458 Views
Last Modified: 2009-01-29
We have a 2003 terminal server running for about 40 users.  I use login scripts to map a few drives throughout the different departments in our company.  Recently a drive has shown up for everyone, on the server that should only show up for 1 of the departments.  On top of that being strange it also shows up as Disconnected Network Drive but when you click on it all of the folders are viewable and accessible.   If I right click on the drive and click disconnect I receive the error The network connection could not be found.
Does anyone know how get rid of this network drive so the login scripts can run the way they are supposed to?
Thanks in advance
0
Comment
Question by:omarbr763
  • 6
  • 4
10 Comments
 
LVL 24

Expert Comment

by:ryansoto
ID: 21825385
When you use your script you should make sure it deletes the drives first then maps them.  
Over time in a session its common for a drive to show disocnnected then when you click it it shows connected again and all files can be accessed.

Example

net use s: /delete
net use q: /delete
net use s: \\server\shared
net use q: \\server\acctg
0
 

Author Comment

by:omarbr763
ID: 21825523
Yes, I do use the /delete line in the login script.  The strange thing is that even users that are not supposed to have this particular drive show up have it appearing as "disconnected network drive"
0
 
LVL 24

Expert Comment

by:ryansoto
ID: 21825609
Do you have multiple log on scripts for different users?
I have one script for say accounting one for management, etc.
When I made that switch some users still showed the old drive that they didnt actually have access to.
The delete should remove the unneeded drives.
When you try and have your users do this manually (right click and delete) the mapped drive what message do they get?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:omarbr763
ID: 21825787
Yes I do have multiple scripts for differnt departmetns.  I should mention that this particular Terminal Server setup has been in use for over a year without this issue.  When you right click on the drive there is not an option to "delete" only "disconnect".  And when you select "disconnect" you get the error i stated earlier.  It almost seems like it's a phantom drive left over from one of the sessions when it was supposed to be there.  I did see some other posts with this same problem without a solution.

 
0
 
LVL 24

Expert Comment

by:ryansoto
ID: 21825949
Try running this command
Subst Z: /D

Z: is the dirve to be dosconnected
0
 
LVL 24

Expert Comment

by:ryansoto
ID: 21825987
Possibly another example
http://www.experts-exchange.com/Programming/Languages/Scripting/Shell/Batch/Q_23285430.html

Also you didnt play with the default user profile did you?
0
 
LVL 24

Expert Comment

by:ryansoto
ID: 21826011
Soryr posting info as I find it.
Do you have Symantec antivirus?
0
 

Author Comment

by:omarbr763
ID: 21826132
thanks for the responses.  I did not play witht the default user profile.  Unfortunatley this does not mean another admin at my company didnt either, i have asked everyone and they said they have'nt either.  We do have Symantec antivirus and i have seen some posts about that.  I will try running Z: /D at an after hours time as i dont want to affect users while they are using this.

thanks again, FYI I'm actually on vacation the next couple of days but may drag myself to log in and try a couple of more things.
0
 
LVL 24

Accepted Solution

by:
ryansoto earned 500 total points
ID: 21826250
Many people had the same issue with Symantec so I would try disabling all related services and retest.
I didnt have those specific issue with Symantec but many others on the rest of my servers.
Went with Trend and fantastic code.
0
 

Author Comment

by:omarbr763
ID: 21856458
So far I've had no luck with any of these options.  Let me konw if you come across any other ideas to try.


thanks!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

by Batuhan Cetin Within the dynamic life of an IT administrator, we hold many information in our minds like user names, passwords, IDs, phone numbers, incomes, service tags, bills and the order from our wives to buy milk when coming back to home.…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question