Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When a network drive (net use) is disconnected, Windows Explorer keeps searching it for 30 seconds. Is there some registry setting or something to reduce this to maybe 5 seconds?

Just to clarify, I'm not asking about network drives that are automatically disconnected by the local Windows after a certain period of time, but about drives that are actually unavailable, e. g. because the target computer is turned off.

share|improve this question
    
You might be looking for this: superuser.com/a/332754/124651 –  deppfx Jul 26 '12 at 8:18

2 Answers 2

In Windows 7 and Vista mapped network drives will disconnect themselves after a time and show a red cross on the drive icon. You will still be able to click on the drive and see/use the contents but applications that require a network drive will see them as disconnected and will not see files. If you try to disconnect the drive, it will still sit there saying 'Disconnected Network Drive' - the only solution is to reboot. This is because there is a default disconnect time for inactive network connections. To correct this and turn the autodisconnect off do the following:

  1. Open the command prompt as Administrator. To do this, either:

    • go to Start → All Programs → Accessories, right-click "Command Prompt" and select "Start as Administrator", or

    • type cmd into the search box and press Ctrl+Shift+Enter

  2. In the command prompty, type the following:

    net config server /autodisconnect:-1
    
  3. Press Enter

  4. Reboot computer

Your mapped network drives should now stay connected - this is a permanent fix.

share|improve this answer

Update:

http://www.windows7hacker.com/index.php/2011/03/how-to-fix-the-red-x-on-the-icon-of-mapped-network-drives-in-windows-7/

Fixing this issue on the client side involves the registry change. Simply open regedit and locate KeepConn key in the registry:

HKLM\SYSTEM\CurrentControlSet\Service\lanmanworkstation\parameters

If not exist, create it in Reg_Dword, and set the time in seconds. For example, I set it as one day to keep the connection live.

share|improve this answer
    
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Ivo Flipse Jul 26 '12 at 9:00
    
Also, as a general reminder: Try to make your answers longer than a sentence and add some context please. Explain how the link actually answers the question – it might not be that obvious. –  slhck Jul 26 '12 at 9:03
    
@IvoFlipse: Sure. Thanks for the suggesstion. –  deppfx Jul 26 '12 at 12:48
    
@slhck: Will keep that in mind. –  deppfx Jul 26 '12 at 12:48

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.