?
Solved

Mapped drive shows as DISCONNECTED but it IS connected - causing problems with some apps

Posted on 2009-04-19
15
Medium Priority
?
952 Views
Last Modified: 2012-05-06
I have a mapped drive to a shared drive on another computer. Both are XP SP2 computers.  The mapped drive shows in my computer but always says DISCONNECTED NETWORK DRIVE in the description.  Yet I can access it immediately upon clicking it.

However, I have another application that uses a web based GUI and for it to see the shares drive I need to map the drive within the software.  But each time I try that, it seems to concur with windows that the drive isn't available.  But it is and I can click into it every time and use the contents.

The mapped drive is mapped to the IP address of the share:  \\IPaddress\sharename
Same behavior if mapped drive uses UNC name instead...

How do I get the mapped drive to show as available?

0
Comment
Question by:wintensivetech
  • 9
  • 6
15 Comments
 
LVL 66

Expert Comment

by:johnb6767
ID: 24182358
Mapped Drive Connection to Network Share May Be Lost
http://support.microsoft.com/kb/297684

It really is disconnected, just reconnects as soon as you click it.....

Start>run>cmd.exe

Paste the following......

net config server /autodisconnect:-1

Then retest teh drives.
0
 

Author Comment

by:wintensivetech
ID: 24186657
If I restart the computer trying to connect to these shares, the share shows up as a network drive.  Only after I connect to it and view the contents and then close the window does it then show up as disconnected.  I can still immediately access it, but the one share in question will never show up as connected again until I restart.

Other shares to the NAS box, etc do not have this problem.  

I ran the netconfig command but that did not change anything.  Do I need to restart?  If that doesn't work I'll try the MS document you mentioned.
0
 

Author Comment

by:wintensivetech
ID: 24186687
Also, the MS document appears to be for shares that are on NT or 2000 and 2003 server OS not XP Pro. The share in question here is a drive on a XP Pro host being accessed from an XP Pro computer. Not sure if that distinction matters.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 66

Expert Comment

by:johnb6767
ID: 24191087
Still the same.... Reboot I cant say if it was realtime or not, but always worth a try....
0
 

Author Comment

by:wintensivetech
ID: 24230867
OK thanks. I have tried the listed solutions above and unfortunately they have not worked for my situation. The listed drive will now appear as a connected network drive for longer periods of time, but will still disconnect eventually.   In any case, it is still immediately available again when I click on it.  But always, it still causes trouble with the apps that require the data on the share.  They still think it is unavailable.

Thanks again for the help.
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 24231048
Try removing the autoconnect on the server holding the shares as well......
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 24231051
Also, when it shows disconnected, on the server (xp box), in a cmd window......

net sessions

0
 

Author Comment

by:wintensivetech
ID: 24233503
ran net config server /autodisconnect:-1 on the share server as well

net session command on server with shares shows:
Computer                   User                          Client Type
\\192.168.0.90           Wintensive                Windows 2002 Serv

192.168.0.90 is the computer that is connecting to it (the one that shows its connected but that apps can't access the share from) and the user is the admin username that is in use as well

net session command from the client computer shows:
Computer                   User                          Client Type
\\Gamez                     Wintensive                Windows 2002 Serv

Gamez is the name of the computer which has the shares on it, so this all seems ot be correct and did not show up correct before I added the disconnect command on the system with the shares.  Let me restart everything and see if the shares can be mapped in the app that was the original problem.
0
 

Author Comment

by:wintensivetech
ID: 24233594
Now all mapped drives to that host show as connected at all times. Even upon bootup they connect and stay connected and are always available.  But my one app cannot seem to see them and will not let me map to them.  I ma using storegrid backup software, and I am trying to map that share within storegrid so I can add the share to the backup routine.  storegrid still refuses to let me map that drive.  Without mapping it, the app won't see it and I cannot back it up...

The exact error fro the app is:

\\gamez\brain seems to be either an invalid UNC path or it is currently not accessible.  Please check if you can access the UNC path and then try adding a drive letter to it.

Of course I can access it either through UNC or IP address and map it there no problem...
0
 
LVL 66

Accepted Solution

by:
johnb6767 earned 2000 total points
ID: 24234747
Does the app run under another user's security context?
0
 

Author Comment

by:wintensivetech
ID: 24236844
I have 2 users and they are both administrators on this machine and on the other machine with the shares.

Noticed this today:

On the system with the shares, the share is a RAID 1 mirror and is a Dynamic disk.  In disk management on the share computer, that drive shows as Healthy(at risk).  So I reactivated it, and ran checkdsk.  It completed fine (but showed no bad sectors?).  So now it shows up as Healthy.  I did have to do the reactivation via the command line.

Would this have anything to do with it?
0
 

Author Comment

by:wintensivetech
ID: 24236872
Answer:  so far NO.  Still can't map the drive in the StoreGrid application.  Shares show up as connected though...
0
 
LVL 66

Expert Comment

by:johnb6767
ID: 24238918
I wish I new more about Storegrid....When you launch the app, look in the Task Manager>Processes Tab, and verify the executable is running under the local user name....

Perhaps it has some services registered to the Service Control Manager that uses a Service/SYSTEM account? That would make the drives unavailable, as they arent mapped for that user account....
0
 

Author Closing Comment

by:wintensivetech
ID: 31575149
John - thanks for the help. Your suggestion is correct and StoreGrid has confirmed the solution is to setup the service that the app runs under to have admin credentials of an actual user on the system.  Even though the share is setup for the group "everyone" the service still must have a users login credentials. I should have tried this sooner but I was being obtuse about this one issue for some reason...So now I will add some security to the share and since the service uses credentials for the users who will have access to the share, all is good and the drive is mapped in the application.  Thanks for your persistence on this one!
0
 

Author Comment

by:wintensivetech
ID: 24245107
As an additional comment (or to say it another way), the storegrid service cannot run under local system account for the mapping to work.
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

This article is a collection of issues that people face from time to time and possible solutions to those issues. I hope you enjoy reading it.
During and after that shift to cloud, one area that still poses a struggle for many organizations is what to do with their department file shares.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…

809 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