Stopping Win2000 from reconnecting network drives at logon when using net use command

Posted on 2003-03-17
Medium Priority
Last Modified: 2010-03-18
I put together a small batch file using the net use command to map some drives at logon.
The problem here is that windows 2000 tries to reconnect the drive(s) at logon, and every time it tries to connect, I get a message saying incorrect password. This also screws things up because the batch file runs as well.
The whole reason I elected to use a batch file instead of just letting windows reconnect it is because it seems windows "forgets" the password
Question by:g_berres
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
LVL 41

Accepted Solution

stevenlewis earned 152 total points
ID: 8156280
couple of ways
one see here
the other is to add Net use * /delete in your batch file
put it before the net use that maps the drive

Assisted Solution

SlyDog earned 148 total points
ID: 8156981
Windows uses 'Net Use' to map drives, the same as your batch file. Unless you supply a username and password in your batch file that's different than the current logged on user, then it will use the same account that Win2k uses to map the drive.

Can you give a little more info on your setup? I'm guessing mapping drives between two workstations, correct?
You change your local password, and your drive maps stop working right?
If you're on a network, add your domain user to the local admin group on the workstation you trying to map to. If you're not on a domain, and you change your local users password regularily, then I suggest creating a local account on the workstation you're mapping a drive to, and use THAT account to map the drive with, as in:

net use \\workstation2\sharename /user:workstation2\localusername password

This way, when you change your local password, your drive maps still work. It also allows the workstation2 admin to set access rights to the share (assuming ntfs drive tho).
LVL 11

Expert Comment

ID: 8166479
Try running your batch file in a scheduled task and specify in the task the account and password with sufficient permissions.

Expert Comment

ID: 8170355
You should go open the run dialog and start cmd.

Then type the command:
net use * /d /y
=> It'll delete all current drive mappings

It could be use full to add this line to future logonscripts. It prevents drivemappings to reconnect @ startup

net use /persistent:no

Grtz Robbe

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

FIPS stands for the Federal Information Processing Standardisation and FIPS 140-2 is a collection of standards that are generically associated with hardware and software cryptography. In most cases, people can refer to this as the method of encrypti…
An article on effective troubleshooting
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…

801 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