Using mountvol

MOUNTVOL

I ran into some issues with the latest Windows 10 update 2004. It was causing their file browser to freeze when opening. I tried multiple times to unmount using “Net use ‘drive/unc’ /delete /y”. So I finally ran across an article about using MOUNTVOL to remove volume mount point directories and registry settings. It worked like a charm, so I figured I would post this.

MOUNTVOL /R

MOUNTVOL [drive:]path VolumeName
MOUNTVOL [drive:]path /D
MOUNTVOL [drive:]path /L
MOUNTVOL [drive:]path /P
MOUNTVOL /R
MOUNTVOL /N
MOUNTVOL /E

path specifies the existing NTFS directory where the mount
point will reside.
VolumeName Specifies the volume name that is the target of the mount
point.
/D Removes the volume mount point from the specified directory.
/L Lists the mounted volume name for the specified directory.
/P Removes the volume mount point from the specified directory,
dismounts the volume, and makes the volume not mountable.
You can make the volume mountable again by creating a volume
mount point.
/R Removes volume mount point directories and registry settings
for volumes that are no longer in the system.
/N Disables automatic mounting of new volumes.
/E Re-enables automatic mounting of new volumes.