Articles

Reconnecting Network Drive on Login

April 16, 2008 at 15:28:39
Specs: Win NT4, Intel/512MB

I have two computers, one is using windows XP and the other is using NT4. They are connected together by a crossover cable and I have a static IP assigned to each. I have a folder shared on the windows XP computer. I am able to map this share as a drive on the windows NT computer and everything works fine. When I restart the windows NT computer, it is set to login automatically and when it is starting windows it displays a box that says, "restoring network connection to \\x.x.x.x\share". It stays on that for about 2 minutes until it finally gives the error:

"an error occurred while reconnecting F: to \\x.x.x.x\share

Microsoft Windows Network: The requested resource is in use.


This connection has not been restored."

If I click on the drive after windows has started, the drive reconnects just fine, but I need it to do this automatically. Also, if I hold shift when windows NT is starting, so it will show the login prompt, and log in as the same user that automatically logs in, it works just fine. It only doesn't work when it automatically logs in.

Some information about the share: I set up a local administrator user on the windows XP computer that has the same user name and password as the user that automatically logs on the windows NT computer. Full rights to the share were given to this user. On the windows NT computer I tell it to connect to the share using this user name and password.

Because of what this computer is used for, I need it to automatically log in and reconnect to this share. Any suggestions would be appreciated.


See More: Reconnecting Network Drive on Login

Report •


#1
April 16, 2008 at 16:01:01

How are you mapping the drive? If via logon script then in your logon script delete the drive mapping and then recreate it.

for example
net use f: /delete
net use f: \\x.x.x.x\share

Imagine the power of knowing how to internet search
http://www.lib.berkeley.edu/TeachingLib/Guides/Internet/FindInfo.html


Report •

#2
April 16, 2008 at 16:08:47

I am mapping it by going to tools->map network drive in explorer. I also check "reconnect on logon".

Report •

#3
April 16, 2008 at 19:58:13

Interesting.

Any event viewer logs of interest on both boxes? I would be looking for referances to the logon account.

I would also suggest you put hosts files on each in the etc directory that contain entries for both machines. So for entries

ipaddress firsthostname
ipaddress secondhostname

This file is read into the dns cache so if name resolution delays were causing the issue this should make name resolution instantaneous

Imagine the power of knowing how to internet search
http://www.lib.berkeley.edu/TeachingLib/Guides/Internet/FindInfo.html


Report •

Related Solutions

#4
April 17, 2008 at 15:30:21

I didn't have a chance to check the events on either computer, but I will later.

Another interesting thing I found out is if I log off, it automatically logs back in(because of the auto login) and the drive reconnects just fine. So it only appears to be a problem when I restart the windows NT machine and it auto logs in.

I've spent way too much time on this so I'm probably going to just use a batch file like you suggested earlier. I just need to add /persistent:no so that it doesn't try to reconnect on login:

if exist f: net use f: /delete
net use f: \\x.x.x.x\share /persistent:no

It really should work without using a batch file, but I know this works and I really don't want to spend any more time on it. So it will remain a mystery.

Thanks for your help.


Report •


Ask Question