I have disable the use of removable media to non-administrator users using MMC console to apply a local policy and setting Removable Disks: Deny read access for non-administrators.
I'd like to set this policy using a PowersShell command or script, instead of using a MMC console.
Is that possible? How could I achieve it then?
Is it possible to apply a policy to a specific user group, not just administrators/non-administrators?

HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\RemovableStorageDevices\{53f5630d-b6bf-11d0-94f2-00a0c91efb8b}\Deny_Readwith a1enabled and0disabled. Have you tried setting that registry key with your PowerShell script? - As for the other part of your question, is this machine connected to an AD domain? – Ramhound Jan 19 '23 at 15:13