First, we need to create a new Notepad, enter the contents as shown in the picture, then save Notepad in the root of c disk, then rename it to Usb.vbs.
Then, use the WIN+R key combination to open the run, enter the Gpedit.msc command, enter the Group Policy Editor after the carriage return, turn on "Computer Configuration"--"Windows Settings"--"script", come out the "Start Shutdown" item, double-click.
Finally, in the pop-up dialog box, click the "Add" button, and then click "Browse" to select the saved files before clicking "OK".
After the above 3 steps of operation, each time we insert a U disk into the computer, in the root directory of U disk to create a new name for the "Pull U disk" notepad. Later there is a mobile device inserted into the computer, the system will pop up when the shutdown "I am a U disk, shut down before you remove" warning box. In this way, we can avoid unnecessary loss in the walking lake. Very simple, try it quickly!
Note : More wonderful tutorials Please pay attention to the triple computer tutorial section, triple Computer office group: 189034526 welcome you to join