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.
Disable removable disks via GPO
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
1 additional answer
Sort by: Most helpful
-
Ronen Ariely 15,096 Reputation points
2021-06-29T08:07:53.693+00:00 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
Thanks