Disable removable disks via GPO

ypf 21 Reputation points

Hello, I would like to use GPO control group policy to prohibit -- > removable disk: deny read permission

This is my code, but can't disable removable disks. Is there a problem with the code? There is no better way. It's invalid to modify the registry directly. I took a snapshot of the registry according to the historical records. After restarting the computer, I found that the value of a key changed and could not be controlled


A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,955 questions
0 comments No comments
{count} votes

Accepted answer
  1. Cheong00 3,471 Reputation points

    Your code uses GPO_SECTION_USER instead of GPO_SECTION_MACHINE. Please change, run and reboot (you don't have code to enforce policy) to check if it works.

1 additional answer

Sort by: Most helpful
  1. Ronen Ariely 15,091 Reputation points

    Good day ypf-3939,

    This forum system is for discussions in English.

    For support in CHINESE you can search for CHINESE forum in the old MSDN forums.

    A better option is to write in English if you can


    0 comments No comments