Using Win7's permission control function to set USB permissions

  

When we use a foreign device to store the USB plug-in


, the system automatically recognizes the USB and installs the driver for the USB device. After the USB interface is recognized, the files in the USB storage device will be automatically played, but the automatic playback will make the Trojan virus invade. In fact, we can use the permission control function of Windows 7 to prevent these two operations.

First enter the X:/Windows/inf directory (X: the partition letter of Win7), find the two files usbport.PNF and usbstor.PNF, respectively, and then the corresponding group or User attribute security permissions are set to deny.

Taking usbport.PNF as an example, usbstor.PNF is also the same:

Right-click the usbport.PNF file, in the dialog box that pops up, switch to the Security tab and click Edit. button, then the default group or user full control sYSTEM is set to refuse to

since installation, although this method can control the USB device from the source, when you plug the device into the host computer After that, the system will not respond to the USB insertion behavior. However, you can also increase the permissions for your favorite users, so that they get full control, and the normal user permissions are modified to reject, so as to achieve a flexible effect.

Copyright © Windows knowledge All Rights Reserved