This is an annoying problem that Service Pack 2 is supposed to eliminate. In most cases a Red "X" on a drive can simply be ignored; there is no reason to attempt a reconnection as it will be done automaticly if the share is called.
The pre-SP2 recommendation does not always work, but it works enough times it is worth mentioning:
This is the autodisconnect on the server disconnecting you after a set period of time. You can extend this time almost indefinately by modifying the "autodisconnect" registry value. I would reccomend setting this value
to 65535. This will cause the autodissconnect to not kick in for 45 days. However, the downside to this is that it will not autodisconnect any connections. You will need to watch the server to make sure that sockets are not being used up. You can run a "netstat -an" to see how many
Active Connections you have.
The autodisconnect value is located at
HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters.
138365 How Autodisconnect Works in Windows NT and Windows 2000
It does help to clear any previous persistent connections in the logon script. Add before mapping any drive letter:
net use * /delete
This oddly can occur in XP if the Netbios machine name and the user name are identical. So if the machine name is offmyrocker, then user offmyrocker can occasion this error.
So:
. Check explorer and see if the drive letter is in fact i n use and ignore any red X's
. Try adjusting the autodisconnect values on the share server (not your workstation);
. Clear persistent entries with net use at the beginning of your logon script;
. Do not name computers after users
. And upgrade to SP2