Solved

Disconnected Network Drive in Terminal Server Sessions

Posted on 2008-06-19
10
1,469 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
Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

 

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Email missing from Outlook but still on Exchange server 6 97
Server Login Issue 4 65
Backup DHCP Server 8 127
Enterprise Mode 4 54
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.…
ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

756 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