How To Fix the Red X on the Icon of Mapped Network Drives in Windows 7

Often, if you have a windows 7 computer on your network that has a few network mapped drives, you may have noticed that in some cases these network mapped drives may disconnect from the network itself after certain period of time of inactivity, and that a red “X” shows up on the icon of the mapped drives like below.


These are actually misleading because if you try to access it again it reconnects automatically and the red X disappears right after. The reason why this happens is because Windows 7 system can drop the idle conections after a specified timeout period, 15 minutes by default. Usually, it’s fine unless you have applications run based on the live mapped connection. Or it will fail because they don’t find any live connection required.

If that’s the case, this Microsoft KB 297684 reveals a quick fix that can fix this on either server side or the client side.

On the Client Side

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


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.


On the Sever Side

If you are network admin who has the rights to change the server settings, you can turns off the autodisconnect feature of the server service on the server side so that all workstations that have the network map drive to the server can keep the connection live as long as they want to. To do so, simply run the following command from a DOS Prompt window that runs as administrator.

net config server /autodisconnect:-1

However, for whatever the reason, if you still want autodisconnect feature on but want a longer period to disconnect, you can use the same command as following:

net config server /autodisconnect:number

number is the number of minutes that you want the server to wait before disconnecting the connection.

That’s it, and hope it helps.

/update on May 20, 2014/

Reader HiramAbiff shared another solution that involves a re-written VBScript, instead of batch file, that seems to be an alternative solution that will solve this issue, if the solution mentioned above didn’t work out.

Related posts:

  1. How Windows 7 Knows My Network Connection Status?
  2. How to Bring Back Classic XP Network Blinking Icon in Windows 7
  3. Windows Network Command Line: PathPing
  4. VPN Reconnect Improves VPN Usability in Windows 7 [Feature]
  5. Visualize Your Network in A Built-in Network Map in Windows 7
  • s.m.

    Thank U !

  • David


    Would just like to say that the biggest number/sec) that can be written in are 65535 sec according to Microsoft.

    NOTE: The client-side session is automatically disconnected when the idling time lasts more than the duration that is set in KeepConn. Therefore, the session is disconnected according to the shorter set duration value between AutoDisConnect and KeepConn. To change the time-out duration in the client-side during a UNC connection, specify the arbitrary time in KeepConn.
    Locate and then click the following key in the registry: HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicelanmanworkstationparametersValue: KeepConn
    Data type : REG_DWORD
    Range : 1 to 65535 (sec)
    Default value: 600 sec = 10 mins”

    65353 equals ffff in Hex.

    Thanks for solving my problem.

    kind regards


    • Kent

      Thanks David for pointing it out. You are definitely right.


  • Pingback: Windows 7 – How To Fix the Red X on the Icon of Mapped Network Drives « HeelpBook

  • Jacinto Cadieux

    It’s a good shame you don’t contain a donate press button! I’d most certainly donate to this fantastic site! That i think at this point i’ll are satisfied with bookmarking together with placing an individual’s Rss feed that will my best Msn balance. That i appearance ahead that will recent updates and definitely will promote the web site utilizing my best Facebook or twitter group:

  • GreyDuck

    You’re missing an ‘s’.

    blah blahserviceSetc

    Other than that, very useful.

  • Mike Denney

    Thanks! Waiting for this to keep my ‘mini-NAS’ solution from ‘timing out’…it’s been driving me NUTS ever since I set it up (an external 500GB Seagate drive connected to my Netgear WNDR3700 via USB ‘Readyshare’, then mapped, for personal/friends to use). So far, SO GOOD!

  • Martin Östberg

    THANKS! Been looking for this for quite some time!

  • l0gic

    You’ve done it again, Kent. I needed this fix again and yours was the first post I found.

    • Kent Chen

      Thanks buddy…haha.

  • HiramAbiff

    try this too

  • Abhishek

    Hello everybody…There is another way to fix this issue…Go to Control panel—–user accounts–Manage your Credentials–Add a windows credential—Type your server address–type user name of server—password of server…..

    Now Map a network drive on the server from client using \server address and map the drive.

    After that restart your PC…Check whether the mapped drive is connected or not…

    Hope it works….

    That’s all for the party…