This tutorial will show you how to enable or disable the automatic mounting and assigning of a drive letter when a new drive is connected for all users in Windows 10 and Windows 11.
Windows will automatically mount new basic volumes that are added to the system, and assign them drive letters by default.
Reference:

automount
Reference article for the automount command, which enables or disables the automount feature.
learn.microsoft.com

mountvol
Reference article for the mountvol command, which creates, deletes, or lists a volume mount point.
learn.microsoft.com
If wanted, you can disable Windows from automatically mounting any new basic volumes that are added to the system.
You must be signed in as an administrator to enable or disable the automount feature.
Contents
- Option One: Check if Automount is Currently Enabled or Disabled
- Option Two: Enable or Disable Automount using "automount" command
- Option Three: Enable or Disable Automount using "mountvol" command
- Option Four: Enable or Disable Automount using REG file
1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.
2 Copy and paste
diskpart
into Windows Terminal (Admin), and press Enter. (see screenshots below)3 Copy and paste
automount
into Windows Terminal (Admin), and press Enter.4 The command will now return with a Automatic mounting of new volumes enabled or disabled message for the current status.
5 You can now close Windows Terminal (Admin) if you like.
1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.
2 Copy and paste
diskpart
into Windows Terminal (Admin), and press Enter. (see screenshots below)3 Copy and paste the command below you want into Windows Terminal (Admin), and press Enter.
(Enable automount - default)
automount enable
OR
(Disable automount)
automount disable
4 Close Windows Terminal (Admin).
5 Restart the computer to apply.
1 Open Windows Terminal (Admin), and select either Windows PowerShell or Command Prompt.
2 Copy and paste the command below you want into Windows Terminal (Admin), and press Enter. (see screenshots below)
(Enable automount - default)
mountvol /e
OR
(Disable automount)
mountvol /n
3 Close Windows Terminal (Admin).
4 Restart the computer to apply.
1 Do step 2 (enable) or step 3 (disable) below for what you would like to do.
2 Enable Automount
This is the default setting.
A) Click/tap on the Download button below to download the file below, and go to step 4 below.
Enable_automatic_mounting_of_new_volumes.reg
Download
(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\mountmgr]
"NoAutoMount"=dword:00000000
3 Disable Automount
A) Click/tap on the Download button below to download the file below, and go to step 4 below.
Disable_automatic_mounting_of_new_volumes.reg
Download
(Contents of REG file for reference)
Code:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\mountmgr]
"NoAutoMount"=dword:00000001
4 Save the .reg file to your desktop.
5 Double click/tap on the downloaded .reg file to merge it.
6 When prompted, click/tap on Run, Yes (UAC), Yes, and OK to approve the merge.
7 Restart the computer to apply.
8 You can now delete the downloaded .reg file if you like.
That's it,
Shawn Brink
Attachments
Last edited: