Question : Could not connect all network drives, but all appear to be connected

I have a logon.bat file that runs when users log in to their pc's. I am using Active Directory in the user setup for logon.bat.

It seems that when logging in, users will receive the prompt, could not connect all network drives, but, when going to Explorere, they are all mapped with  no problems.

This logon.bat file was created before I came here, and yes, 2 drives are connected to the same place.  Working on changing that, but different applications point to different drives.  

Here is the logon.bat:

echo
echo
net time \\bbkw1notes /set /yes

net use F: \\server\ddrive
rem net use H: \\fs1\vol2
net use J: \\bbkw1notes\intell-a-check
rem net use L: \\FS1\Vol4
net use N: \\server\ddrive
rem net use O: \\FS1\sys
rem net use P: \\FS1\Vol6
rem net use R: \\fs1\vol2
net use W: \\server\docs
rem net use X: \\fs1\vol3
net use Y: \\server\%username%

@echo off
rem regedit /s \\server\netlogon\dst.reg
rem cscript \\server\netlogon\dst.vbs

All the rem lines point to a server that is no longer in existence, I would like to remove thoses completely.  As well as the rem lines at the end of the script.

Would the old locations be causing the message?

Thank you

Answer : Could not connect all network drives, but all appear to be connected

The drive(s) could already have been mounted previously. As an example, you can manually mount a drive, and there you can also have a checkbox like "Reconnect at Logon". This can be active before the script runs. I'd also use "net use /delete" for all the mounted drives before mounting them, that should remove the mounts before they are mounted and then you shouldn't get the error message. You can also use that in a logoff script.
Random Solutions  
 
programming4us programming4us