Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2007-12-03
2
Medium Priority
?
2,235 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 1500 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

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  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

Uncontrolled local administrators groups within any organization pose a huge security risk. Because these groups are locally managed it becomes difficult to audit and maintain them.
Transferring FSMO roles is done when an admin wants to split roles between certain Domain Controllers or the Domain Controller holding the Roles has been forcefully demoted using dcpromo / forceremoval
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…
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 …
Suggested Courses

972 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