Prevent mapped drives from reconnec

March 11, 2009 at 12:02:29
Specs: Windows Vista
Hi. I have a bunch of mapped drives on my computer that I use when I'm connected to my employer's VPN. Vista (and XP) appears to try to connect these drives when I log in, but obviously this always fails because I am not connected to the VPN yet. This slows down the login process considerably. I want to prevent the OS from trying to reconnect these drives at login. How do I do this? Note that I still want the drives to be mapped--I just don't want the OS to try to connect them. If the answer involves using a login script, please explain to me how I would save and "install" such a script because I have never written one before.

Thanks very much.


Duluter


See More: Prevent mapped drives from reconnec

Report •


#1
March 11, 2009 at 16:15:28
Maybe a batch file.

Here is the basics of a way to start.

Use the Net Use command to map or disconnect a drive
You can use the net use command for batch files and scripts. To use the net use command to map or disconnect a drive:

* To map a network drive:
1. Click Start, and then click Run.
2. In the Open box, type cmd.
3. Type net use x: \\computer name\share name, where x: is the drive letter you want to assign to the shared resource.
* To disconnect a mapped drive:
1. Click Start, and then click Run.
2. In the Open box, type cmd.
3. Type net use x: /delete, where x: is the drive letter of the shared resource.


So...

Using notepad you make a file named maybe nodrive.bat

net use x: /delete

Do that for each drive and try.

Then make a file named maybe driveon.bat
and map them again.

Might be better to ask your works system admin maybe.

"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10


Report •

#2
March 12, 2009 at 07:04:35
jefro:

Thanks for the reply. So, I would save the two batch files. And then run them when I need them? I.e., I would run the "map" file after I log in. And I would run the "disconnect" file before I log out? Do I have to do this manually?

Thanks,

Duluter


Report •

#3
March 12, 2009 at 15:26:36
Yep,

Unless you have a way to determine where you are at, otherwise you'd have to click on batch file or run it from command.

"Best Practices", Event viewer, host file, perfmon, antivirus, anti-spyware, Live CD's, backups, are in my top 10


Report •

Related Solutions

#4
March 13, 2009 at 07:28:39
Great. Thanks for the responses!


Duluter


Report •


Ask Question