Question Locked

Mapped Drives are Disconnected at log on

0 helpful
32 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I am having a issue with mapped drives disconnecting at log on. I have mapped the drives with static ip. I have also used the net sever config /autodiscoonect:-1 on both the clients and servers. I need the drives to never disconnect from the mapped drives. Can anyone help with this issue?

32 replies

by wizard-09

use the code below to start at startup or check the box reconnect at log on under the map drives if this does not work use the code below

@echo off

cls

net use d: \\servername\folder

by robert.kent

Do you know how to keep the connection on at all times specially when you loc kthe computer no when you log off or on. I think I could handle that part but I need the connection to stay on over nights.

by Former member

Hope this helps in some way.

To have Windows automatically connect to shares on your Network, we'll need to create a drive mapping (or several if you connect to more than one share).

Drive mappings are great for shares that are password protected since you can setup them up to authenticate automatically.

Start by double clicking on My Computer (XP), or Computer (Vista). Then click on Tools from the menu and select Map Network Drive?
If you know the Computer and Share name, just enter it in the Folder: field using the following format:

\\computername\sharename

Or you can browse for the Computer by clicking on the Browse? button.

To automatically connect during logon, check the box next to Reconnect at logon.

If you want to use a specific letter to map the drive (other than the one selected by default), click on the arrow next to the Drive: field and make your selection.

NOTE: any existing drive mappings in use, will not appear in the drop down list.

For shares that are protected with a password, click on the link in the phrase Connect using a different name

In the Connect As? dialog box, enter the username and password of the remote computer. Make sure you append the Computer name before the username.
Click OK when finished.

When you have completed all the steps, click Finish. to connect and map the drive.

Next time you boot your Computer or logon, the share will automatically connect and create the drive mapping. No need to keep authenticating.
http://www.watchingthenet.com/automatically-connect-to-folder-shares-during-startup-in-windows.html

Please post back if you have any more problems or questions.
If this information is useful, please mark as helpful. Thanks.

by robert.kent

I have looked at this post and I have checked everything that you have recommended. I hope this helps explain more of the problem. My office runs processes over night sometimes and as soon as we lock the computer (to me everything should stay connected and continue running) the mapped drives disconnect and stops the process running over night.

by shhite

Sounds like your computer is going into sleep or hybernate mode. Have you checked those settings? That would cause the mapped drives to disconnect.

by Former member

"Use the PushD command to create a quick temporary drive map in Windows XP". This will be located last on the list so scroll all the way down.

More info here:
http://blogs.techrepublic.com.com/window-on-windows/?m=200801

Please post back if you have any more problems or questions.
If this information is useful, please mark as helpful. Thanks.

by larryd4

We had an issue where mapped drives were disconnected at logon, on servers that were not in the same location.

We had to adjust the response time on our routers to account for the "are you their" request from the client.

by robert.kent

Can you please fresh my mind how to set the time reponse on the server and client computers. Thanks for the help

by larryd4

This was packet priority assignment on the routers between the two buildings

by robert.kent

I have set it in the bois, in the windows setting power management, and I have changed the NIC setting to not go to sleep.

by shhite

Ok. I found this on another techrepublic post. It is a registry change that sends packets to the server every five minutes. It might do the trick.

http://tinyurl.com/4m67ek

by robert.kent

I was not able to open the URL at work. Was the regedit
\System\CurrentControlSet\Services\LanmanServer\Parameters
I have changed this on both the client and server.
Just throwing this out as a possible cuase for the issue. We use sysprep and run 1 image on all of our computers. Could something in sysprep becausing the issue. Not sure If that is possible.

by shhite

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters]

"KeepAliveTime"=dword:00300000
"KeepAliveInterval"=dword:00001000

by robert.kent

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Tcpip\Parameters]
The regs key are not there. Do I need to add them. I am running XP Pro SP2. Is that still the right place for the reg hacks?

by shhite

Its not there for me either, which makes me think that isnt your problem. Here is something else I found on your problem. I don't know if it will help or not. It might if your "Hide and disable all items on the desktop" policy is enabled. Hopefully this link will work. Let me know

http://support.microsoft.com/kb/812933

by robert.kent

I looked at that already and followed the instructions on that and still happens.
I have been trying to solve this for a month.
I left the original question vage becuase meybe someone else had a simple idea that would help. I have done 95% of the issues solving that I have found online and nothing is working. I thought (I know my first mistake) if someone else looked at the problem the may see somehting that I have not. If you keep the ideas coming I'll keep trying but I just need it fix. Thanks for the help!

by shhite

Do all your machines disconnect form the shared drives at lock down or just one? And everyone is on XP sp 2?

by robert.kent

I one that really does it and a couple of the other boxes do it but not all.

by robert.kent

I am really having the problem on a few of our computers not all of them. If I could get help on to to keep the connection for the mapped drives for when the users lock the computers that would be a major help.

by ugadata

I may not be reading this right but if your locking the computers (CTRL-ALT-DEL then click on Lock computer) You may want to try password protecting a screen saver instead.

You should also be able to create an icon for the desktop to invoke the screen saver at will.

by robert.kent

I have all of our screen savers set with password protection. The only around that one I have been doing is setting the screen saver to never come on to see if once you they still drop the connection.

by robert.kent

That is not what I am trying to do in this case. I need the mapped drive not to disconnect when I log off or Lock the computer with . I have a few computers that are having this issue but not all of our computers are having this problem. Do you have any ideas that could help keep the connection connected?? Thanks for you help with this issue that I have.
On a side note I have been looking at this for about a month now And I have tried many different ideas so please keep the ideas coming because mybe I have over look something.

by Former member

I think the last bit here might be of interest to you as this might be running and so disconnecting the devices.

Impact of open sockets on scalability
http://discuss.joelonsoftware.com/default.asp?design.4.652240.24

This connection is meant to allow the server to send asynchronous messages to the client (for example, notifying it that the server is rebooting) as well as allowing it to track when clients log off (by disconnecting the socket).

Please post back if you have any more problems or questions.
If this information is useful, please mark as helpful. Thanks.

by robert.kent

Does anyone think that my issue could be cause from a corrupt user profile? not sure about this but I would like some Ideas if this is possible.

by rob miners

with another account. It would be the quickest way to find out.

by rob miners

with "I one that really does it and a couple of the other boxes do it but not all" with these PC's. Have you checked the NIC settings to see if they are all set to auto negotiation. Have you checked the Event logs for any discrepancies.

by robert.kent

Nothing shows up in the event log. I have already changed to the NIC settings. Any other help you can give will be great

by robert.kent

one profile can add mapped drives on box A and left the computer all day. Move to box B and map the drive log off and mapped drives disconnect. Both boxes have the same image and reg hack nothing is different between the two. Can anyone help with this issue?

by Former member

Have a look at the nic settings and see if the box is ticked to power save. Just a thought.

Please post back if you have any more problems or questions.
If this information is useful, please mark as helpful. Thanks.

by robert.kent

I have checked that as well. The new issue that I have come across 2 different users on the same computer. One can log off and the Mapped drives fall off. And a different users can log on the the same computer and map the drives and let it be for 8 hours log off and log back on and the drives stay connected. Can anyone help with this?

This discussion is closed to new replies.