Solved

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

Posted on 2007-12-03
2
2,221 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 88

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

Does Powershell have you tied up in knots?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

813 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

16 Experts available now in Live!

Get 1:1 Help Now