Block access to removable media data carriers under Windows!
Configure access to all removable drives on all Windows 11, 10, ... operating systems!
Many users and administrators do not want external USB sticks, SD cards, etc. to be connected to the Windows computer in order to ensure more security on the operating system. This can be achieved under all Windows operating systems via two Windows registry entries. And thus prevent any unwanted software from being installed.
1.) Block access to all removable media via registry!
Open the key in the Windows Registry:
Currently logged in user: HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows\RemovableStorageDevices
For all users on the Windows computer: HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\RemovableStorageDevices
and simply create a REG_DWORD, "Deny_All" and set the value to: 1
If you want to allow access to external drives again, then to 0 (NULL), or simply delete the "Deny_All" entry
Start the local group policy editor, please press the key combination [Win-Logo]+[R] , then simply use the gpedit.msc command in the Run dialog and confirm! For all users, use the "Computer Configuration" for the currently logged-in user "User Configuration"