Hello
You can use Group Policy to restrict the copying of files with certain extensions to USB drives on Windows 10 22H2. Here’s how you can do it:
Open the Group Policy Management Console by typing gpedit.msc in the Start menu and pressing Enter.
In the left pane, navigate to Computer Configuration > Administrative Templates > System > Removable Storage Access.
In the right pane, double-click on the Removable Disks: Deny write access policy.
Select the Enabled option, then click on the Show button next to the List of file extensions to block field.
In the Value column, enter the file extensions you want to block, separated by semicolons. For example: .rar;.zip;.bat;.rar
Click on OK to save your changes.
After applying this policy, users will not be able to copy files with the specified extensions to USB drives. Keep in mind that this policy only applies to the computer where it is configured, so you will need to apply it on all computers where you want to restrict access.