First, insert your U disk on the computer and confirm the letter of the U disk. Mine is G-disk, as pictured.
Second, open the extension that displays the file.
The steps are: My Computer--tools--Folder Options--View--Remove the "Hide extensions for known file types" √. As shown in the figure
A new "boot. bat" file is created outside the system disk (my C disk).
Copy code in: "If not exist I:eckert.lj shutdown-s-T 5-c"
If you do not have a U disk you do not have the right to use the computer.
Where (I:eckert.lj i for U disk letter, my for G disk)
In turn:
Start--run--gpedit.msc--Computer Configuration--windows Settings-script startup shutdown-start-Add.
As shown in the figure
That way, it's all set up.
The next boot. If your USB drive is not on the computer, then the computer will automatically shutdown after 5 seconds of startup.
Attention matters
If the USB disk is lost, boot directly into safe mode, delete the "boot. bat" inside the policy group.
Text, original pictures, I am a pro-test share, reproduced please specify! If you think this experience is helpful to you, please pay attention to the author, thank you!
Note : More attention to the computer Tutorials section, triple Computer office group: 189034526 welcome you to join