Solved

Connect to network drive timeout Windows 7

Posted on 2013-01-01
3
1,118 Views
Last Modified: 2013-01-02
I have a work laptop computer that is mapped to 8 network drives. I can't change that, it's set by IT.

Problem is when I boot when not connected to the network, it takes about 30 seconds for W7 to give up looking for a network drive. That's 8 drives 30 secs each or about 4 minutes of wasted boot time.

How can I set it to give up (timeout) faster? 10 sec? I've googled high and low for an answer and it doesn't look like there is a setting for that. Is there?

Thanks in advance,

swjtx99
0
Comment
Question by:swjtx99
3 Comments
 
LVL 17

Expert Comment

by:sgsm81
ID: 38735721
0
 
LVL 16

Accepted Solution

by:
terencino earned 500 total points
ID: 38736166
Mapped drives are a nuisance if you use your work PC offline, even if it is reasonably quick, because of the red Xs and annoying messages. I delete all the mapped drives using a local logoff script before I take my laptop out of the office. So when I boot at home or wherever, it goes straight to desktop, no attempts to login to network shares that aren't there. I have another script to remap everything if I connect remotely like with VPN. And when you're back in the office, your domain Group Policy scripts will automatically log you on as usual.

Next step is copy the network mappings, these are useful to know in any case.

First manually disconnect from all your network drives. This will clear out remembered connections. Logout & Login again just to make sure your domain script is doing the right thing. The logoff script is a simple VBScript you can have on your desktop or local group policy logoff, just copy to a text file, save as say DeMap.vbs, run it to disconnect the drives (it takes about 5 seconds to disconnect everything), then you are ready to shutdown and take your laptop home.
ON ERROR RESUME NEXT
Set oNetwork = CreateObject("WScript.Network")
Set clDrives = oNetwork.EnumNetworkDrives
For i = 0 to clDrives.Count -1 Step 2
    oNetwork.RemoveNetworkDrive clDrives.Item(i), True, True
Next 
set oNetwork = Nothing
wscript.quit

Open in new window

And setup another script, say ReMap.vbs as follows, to re-map the shares after connecting to your network via VPN
ON ERROR RESUME NEXT
Set oNetwork = CreateObject("WScript.Network")
oNetwork.MapNetworkDrive "X:", "\\SERVER\SHAREX",True
oNetwork.MapNetworkDrive "Y:", "\\SERVER\SHAREY",True
oNetwork.MapNetworkDrive "Z:", "\\SERVER\SHAREZ",True

Open in new window

Hope that helps
...Terry
0
 

Author Closing Comment

by:swjtx99
ID: 38738492
This works perfectly. Also good to have a quick method for adding back network drives that (for whatever reason) get lost.

Thanks!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
You may have a outside contractor who comes in once a week or seasonal to do some work in your office but you only want to give him access to the programs and files he needs and keep privet all other documents and programs, can you do this on a loca…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This Micro Tutorial will teach you the basics of configuring your computer to improve its speed. It will also teach you how to disable programs that are running in the background simultaneously. This will be demonstrated using Windows 7 operating…

920 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now