Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Connect to network drive timeout Windows 7

Posted on 2013-01-01
3
Medium Priority
?
1,286 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
[X]
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
3 Comments
 
LVL 17

Expert Comment

by:Steve
ID: 38735721
0
 
LVL 16

Accepted Solution

by:
terencino earned 2000 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: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering 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

The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This Micro Tutorial will give you a introduction in two parts how to utilize Windows Live Movie Maker to its maximum capability. This will be demonstrated using Windows Live Movie Maker on Windows 7 operating system.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

618 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