Avatar of KC2TC
KC2TC
Flag for United States of America asked on

Windows 10 20H2 Network drives shows as not connected but it works fine

Network drive shows Not Connected (Red mark) once windows is logged in but it works fine without any issue, only problem is it shows as Not connected and unable to disconnect it.

Windows Version: Windows 10 20H2 (19042)

Windows OSWindows 10Networking* Fileshares* network location

Avatar of undefined
Last Comment
KC2TC

8/22/2022 - Mon
nobus

check event viewer for more info
no errors in device manager?
did you reboot the PC?
did this happen after an update , or software install?

KC2TC

ASKER
No Errors in event viewer and Device manager. This happened in new 20H2 install and OS upgrade scenario too. The issue we are facing is similar to the issue. The solutions mentioned in the link also did not work
Red X on mapped network drives. (microsoft.com) 
Robert

This is one of those issues that keeps giving and I have seen it several times since around windows 7.
Over the years there have been several things that cause this problem. (a quick google search off "red x on network drive" will show you how common it is) 
In general the following steps are what typically fixes it:
On the server side run the following to disable the autodisconnect (run it from admin command prompt)
net config server /autodisconnect:-1

Open in new window


Then on the client side
open regedit
go to
HKLM\SYSTEM\CurrentControlSet\Service\lanmanworkstation\parameters
modify the KeepConn  key to a higher value (this is the keep alive timeout)

Your situation may be different but i would start with the above and see if it helps. (you can always change it back)

Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
Scott Silva

I have also seen this a lot over the years... After a reboot, if the network is just a bit slow to finish loading, the OS sees that the drives didn't connect and marks them red... Windows just checks too early, and doesn't have any code to tell it to wait until the network stack is fully connected...
Jason Johanknecht

Could just be the icons file is corrupted.  My favorite is when the recycle bin always shows something in it when empty.
Here is the top result on Google to help on resetting icon cache: https://answers.microsoft.com/en-us/windows/forum/all/windows-10-desktop-icons-refreshing/acf43995-2f0d-4f86-8904-c39e3043c2aa
nobus

do you see them in disk management ?
look if this helps :  networking - Windows 10 Doesn't Find Network Drives or Computers - Super User 
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Robert

Nobus: disk management does not show mapped network drives. 
KC2TC

ASKER
None of the steps mentioned above is fixing the issue. The issue is that I cannot disconnect and reconnect the drives.If we try to disconnect, it has below error.
 
 

Jason Johanknecht

I would run the usual SFC /scannow and then DISM /online /cleanup-image /restorehealth
from Power shell.  Might be file or drive corruption.
Another thought would be Windows repair FREE from tweaking.com
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck
Robert

You can remove them from the registry then reboot.
The location will vary depending on how it was mapped.
HKCU\Network
or
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\
or
HKCU\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Map Network Drive MRU

You can also try to remove the map using the NET USE command (this will try to remove any mapped network drives) 
NET USE * /DEL  /Y


ASKER CERTIFIED SOLUTION
KC2TC

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.