Solved

Connect to network drive timeout Windows 7

Posted on 2013-01-01
3
1,144 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
While working, an annoying popup showing below will come and we cannot cancel or close it form the screen. The error message will come again and again.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.

856 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