Situation: The File Explorer shows “Disconnected Network Drive (Z:)” with red forever. Net use Z: /delete gets an error The network connection could not be found.
Resolution 1: Remove it by using a scheduled task, for example open an elevated CMD prompt and type the following:
If you wish it to run at 13:00 (1:00 PM) and the drive letter to remove is “Z:”
AT 13:00 NET USE Z: /DELETE /Y
Open explorer and you will see the drive letter is now removed.
Resolution 2: create and run a batch file, for example del.bat including these commands:
net use * /delete /y
taskkill /f /IM explorer.exe
explorer.exe
Note: substitute your own net use [Z]: /delete command for specific mapped drive letters on Z.
Resolution 3: Use registry Editor.
Go to HKEY_CURRENT_USER/Network
Now remove the letter you want in this case Z, and restart the computer. issue is fixed.