Solved

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

Posted on 2007-12-03
2
2,216 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:cas_three
2 Comments
 
LVL 87

Accepted Solution

by:
rindi earned 500 total points
ID: 20396298
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.
0
 

Author Comment

by:cas_three
ID: 20398228
I tried the delete, it's not working.

In AD I removed logon.bat from my user profile, but when I logged in, all the drives mapped?  So where is that pulling from?  I thought it was c:\winnt\sysvol\sysvol\domain\scripts?

By the way, it's a 2000 Server that I'm mapping too.

This is driving me crazy!
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

Companies that have implemented Microsoft’s Active Directory need to ensure that the Active Directory is configured and operating properly. If there are issues found and not resolved, it eventually leads the components to fail or stop working and fi…
Resolve DNS query failed errors for Exchange
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles from a Windows Server 2008 domain controller to a Windows Server 2012 domain controlle…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

707 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now