Home | Site Map | Cisco How ToNet How To | Wireless |Search | Forums | Services | Donations | Careers | About Us | Contact Us|

Reconnect doesn't work

Network Sharing , TCP/IP, Internet, Wireless, Exchange, IIS, ISA and Print

Reconnect doesn't work

Postby guest » Fri Oct 17, 2008 10:02 pm

You have mapped network drives and checked the option "Reconnect at

To resolve the issue, we can create a service that will run a batch file.
This is because the drive mapping depend on user context and therefore only
the same service that maps the drive or other services in the same security
context will see the mapping . Please see

Here is one solution that I have found that uses SRVANY tool from Windows
2003 Resource Kit. If you don't have this resource kit handy, you can
download it from here


How to Map a network drive and make it persistent. The idea is to create a
service that will map the network drive in the background.

Here is what you need to do:

1. At a command prompt(running CMD.EXE), type the following command:

C:\MapPersistentDrive\INSTSRV.EXE MapDrive C:\MapPersistentDrive\SRVANY.EXE

Where INSTSRV.EXE and SRVANY.EXE are tools that are part of the Resource
Kit (Copy it to C:\MapPersistentDrive) and MapDrive is the name of the
service you are creating.

To verify that the service was created correctly, check the registry to
verify that the ImagePath value under

"HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MapDrive" is set to
point to SRVANY.EXE

2. Run Registry Editor (Regedt32.exe) and locate the following subkey:


3. Right-Click on MapDrive, select New and choose Key. Name the key
4. Select the Parameters key.

Key Name: Parameters

5. Right-Click, select New and then "String Value". Type the following and
click OK. Double-click the newly created String value and type in:

Value Name: Application
Data Type : REG_SZ
String Value: C:\MapPersistentDrive\Map.cmd

6. Close Registry Editor.

The Map.cmd file will have the following command: net use
L:\\\archive /persistent

Now start the MapDrive Service. The service should start and map the drives
listed in the CMD file.

You should be able to see the mapped drive which will be persistent even
after the user logs off.

The same can be achieved using Task Scheduler AT command. Configure the AT
command to run the above map.cmd file
Tablet and Smartphone Setup Guide

Troubleshooting Vista Wireless
Posts: 10191
Joined: Mon Nov 27, 2006 1:10 pm

Return to Networking

Your Ad Here

Who is online

Users browsing this forum: Google [Bot], Google Adsense [Bot] and 6 guests