# Windows 10, cannot run any .exe from secondary drives

## Windows 10, cannot run any .exe from secondary drives

When I try to run any exe from any secondary (non C:) drive or partition, I get a message box with Windows cannot access the specified device, path or file. You, may not have the appropiate permissions for the item if I try to run it from cmd I get Access is denied..

I have full control over the files.
Tried it with a known exe  (wordpad). Copied it on the Desktop and it worked. From anywhere on the secondary partition of the local HDD, or a removable USB didn't.
This worked 3 months ago, not sure when it stopped working
I'm the owner of the file

(edit: added that I'm the owner of the file)


If the solution of darmual did not cut it quite for me. The group policies did not change the registry entries needed to grant execute rights for removable media devices (for some reason my second hard drive was also considered a removable device).

In order to gain write access to executable files in your “removable” media under windows 10 you should change the following register entries:

• HKLM\SYSTEM\CurrentControlSet\Control\Storage
• HKLM\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}
• HKLM\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\RemovableStorageDevices{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}

Deny_Execute

set it to

This solution worked for me and hopefully will fix your problem as well.

Edit (14.05.2018):

Here are the keys entries and their corresponding values. Save the lines of code into a .reg file and you will be able to change them all at once:

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Storage]
"Deny_Execute"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Policies\Microsoft\Windows\RemovableStorageDevices\{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}]
"Deny_Execute"=dword:00000000

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\RemovableStorageDevices\{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}]
"Deny_Execute"=dword:00000000


The problem was caused by a Local Group Policy Admistrative Template, Local Computer Policy\Computer Configuration\Administrative Templates\System\Removable Storage Access\Removable Disks: Deny execute access, which was manually set to enable.

Related:  Get statistics on how ReadyBoost is being used by Windows

After resetting it to Not Configured and rebooting the problem disappeared.

Apparently the secondary partition from my main hard drive was also considered a “Removable Disk”.

Open Command Prompt as Administrator (right click on the shortcut for the option), switch to the drive (type D:), cd to the directory (type cd \path\to\dir, and type start filename.exe