Unable to disconnect network drive from my VM after deleting file share

kobulloc msft 45 Reputation points
2024-07-18T06:21:51.8+00:00

Note: Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.


I recently deleted an SMB file share from my subscription but it still appears as mounted on my VM. When I try to dismount the drive, the server explorer becomes unresponsive.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,596 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,131 Reputation points Microsoft Employee
    2024-07-18T06:22:38.81+00:00

    Note: Based on common issues that we have seen from customers and other sources, we are posting these questions to help the Azure community.


    A PowerShell command can be used to forcibly dismount the network drive. Use the following where > represents the drive letter of the network drive you wish to disconnect:

    net use >: /delete

    Example:

    net use f: /delete

    This command instructs the system to delete the specified network connection.

    Additional reading:

    0 comments No comments