Solved

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

Posted on 2007-12-03
2
2,227 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

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

While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
A company’s centralized system that manages user data, security, and distributed resources is often a focus of criminal attention. Active Directory (AD) is no exception. In truth, it’s even more likely to be targeted due to the number of companies …
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 …
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

739 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