Mapped drives registry6/12/2023 ![]() Running mountvol /r instead of mountvol /l, and many of my mount folders were deleted (those created by diskmgmt/mountvol), but some remained because they were created directly as junctions, so no LocalMOF registry entry and mountvol wasn't aware of them. On the Triggers tab, select New, and then select At log on for the Begin the task field. Select Change User or Group, select a local user or group (such as LocalComputer\Users) and then select OK. I had a bunch of mount points for USB drives under T:\DriveMounts (so I have fixed locations with not enough drive letters), and just realized that some were created by direct junction creation instead of using diskmgmt or mountvol. On the General tab in the Create Task dialog box, type a name (such as Map Network Drives) and description for the task. Probably why you can only mount drives into NTFS sub-folders (maybe ExFAT too, but I don't use it). However, if you delete the junction, the mount point is removed from diskmgmt and mountvol. The mount folder in the file system even if those registry entries are deleted. As you found, these entries do not affect access to the mount folder whenever the drive is connected, because the junction still exists at If you mount a drive to a folder, a junction is created at that location (use dir /L to see the junction).Īt the same time the LocalMOF entries are created so diskmgmt and MountVol know what mount points have been created. I think the paths are actually junctions/reparse points, and as such are stored in the file system. However, I notice that `mountvol /R` does notĮven remove entries under `HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\CPC\LocalMOF\`. So far the only way I discovered to remove the path mappings (I mean except `Disk Management`) is `mountvol /R`, unlike drive letters mapping, which you can delete directly from `HKLM\SYSTEM\MountedDevices`. In fact, it will only come back if I boot Windows with the drive connected. The entry in LocalMOF does not come back right after I connect the drive again. The path mapping is NOT removed (as hinted by the extra entry popped out under `HKLM\SYSTEM\MountedDevice`):Īs you can notice I restarted regedit. Once I reboot, the extra entry popped out under `HKLM\SYSTEM\MountedDevices` comes back: Then I deleted all the entries related to `E:`: How can I stop users from being able to map/disconnect network drives Start the registry editor (regedit.exe) Move to HKEYCURRENTUSERSoftwareMicrosoft. The entry under `HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\CPC\LocalMOF\` remains though: Also, an extra entry popped out under `HKLM\SYSTEM\MountedDevices`. Run regedit and go to HKEYCURRENTUSERNetwork. If I shut down the computer, and restart it without the drive connected:Īs you can see, the entry under `HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2\CPC\Volume\` already disappeared (i.e. Resolution The full path of a mapped drive is stored in the registry. So this is my test case with an external drive (`E:`): ![]()
0 Comments
Leave a Reply. |