I am not able to disconnect a mapped netwotk drive in windows 10

Bilal Hawili 26 Reputation points
2023-09-06T16:40:17.1966667+00:00

I have a windows 10 workstation with the latest updates. I have a mapped network drive that I am trying to disconnect and when I try to disconnect, I get a message Access Denied. I am an admin on the computer and have all the permissions to delete, but I am being denied access. Is there a way to delete it in the registry or via a powershell command?

Thanks for your help.

Bilal

Windows for business | Windows Client for IT Pros | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-09-20T06:11:26.9533333+00:00

    Hi.

    You can try to remove the mapped network drive from the registry. Here are the steps:

    1. Open the Registry Editor by typing "regedit" in the Start menu search bar and pressing Enter.
    2. Navigate to the following key: HKEY_CURRENT_USER\Network
    3. Find the key that corresponds to the mapped network drive you want to remove.
    4. Right-click on the key and select "Delete".
    5. Confirm the deletion.

    Note: Editing the registry can be risky, so it's recommended to create a backup before making any changes.

    Best Regards,

    Hania Lian

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    2 people found this answer helpful.

  2. S.Sengupta 24,636 Reputation points MVP
    2023-09-07T00:35:50.5433333+00:00

    You can use PowerShell to remove a mapped network drive. Open PowerShell as an administrator and use the Remove-SmbMapping cmdlet.

    Remove-SmbMapping -LocalPath X:

    Replace "X:" with the drive letter assigned to the mapped network drive.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.