Unable to disconnect a mapped network drive in windows 10

Problem:

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?

Resolution:

Open Command Prompt as an administrator.Then, use the net use command to disconnect the mapped network drive.

net use X: /delete

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

Sometimes, Windows may not immediately remove the mapped drive from File Explorer even after using the net use command. To manually remove it:

a. Open File Explorer. b. Click “This PC” or “Computer” in the navigation pane. c. In the “Network locations” section, you should see the mapped network drive. Right-click it and select “Disconnect.”

You can also 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.

Fixing bootrec /fixboot Access denied error

Problem:

When you are trying to repair boot sector of a corrupted Windows and during using Bootrec /fixboot command you are getting access denied error message immediately.

Resolution:

  • Turn on computer and as soon as Windows log comes turn off computer. Do this for 2/3 times –this will lead to Automatic Repair.

image

  • Click on Advanced options. Click on Troubleshoot,

image

  • Click Command Prompt.

image

  • In Command Prompt window type the following commands step by step and hit the enter key after each command.

bootrec /fixmbr

bootrec /fixboot

You will get Access denied error

Now type the following command:

bootsect /nt60 ALL

bootrec /fixboot

You will now get operation completed successfully message.

Now type the following command:

bootrec /rebuildbcd and hit the enter key.

  • Exit the Command Prompt
  • Reboot.

Now Windows will be loaded.


Bitlocker works fine on C drive but external drive gives “Access denied” error

Problem:

C: Drive bitlocker works fine but  I get “Access Denied” error on external drive.

Resolution:

  • In Start Search type Services.msc and hit the Enter key
  • Double-click BitLocker Drive Encryption Service
  • Select Automatic option in the drop-down menu of Startup type. And tap OK.
  • In the pane with description of BitLocker Drive Encryption Service, choose Restart the service.
  • Restart your computer