Solved

Connect to network drive timeout Windows 7

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

So many times I have seen the words written in a question "if only I could show you" or " I know how hard it is for you since you can't see it" in any zone. That has inspired me to write about this tool in windows 7 called "Problem Steps Recorder…
By default the complete memory dump option is disabled in windows . If we want to enable the complete memory dump for a diagnostic purpose, we have a solution for it. here we are using the registry method to enable this.
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…
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

691 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