How to use a USB disk as a boot key for win10
Quickly create a boot key for Win10 system U disk
A lot of friends don’t like others to use their computers. After all, they have their own privacy, and more importantly, they are afraid that others will delete or damage them by mistake. The editor will share with you a method to prevent others from touching your computer by using only a USB flash drive. Let’s see who dares to touch it?
First insert the U disk, remember the drive letter displayed on the computer, for example, this is the F disk, and then click to enter.
At this time, at the manager column header, click to switch the tab to "View" and check " file extension".
Then right-click in the F drive letter folder and "New - Text Document".
Note that the input file name is key.txt, where .txt is the automatically provided Notepad file format , then modify the txt, change it to sys, press Enter to confirm, and select "Yes" in the prompt dialog box. Then take a look to confirm whether it is Key.sys of the F drive.
Reopen a notepad (you can find it by typing notepad in the start menu) and create a new document , enter if not exist F:key.sys shutdown -s -t 20 -c. To put it simply, check if there is no Key.sys file in the F drive, the system will automatically shut down after 20 seconds. After confirmation, click "File - Save As".
Select the C drive, then change the save type to "All Files" and name it "Startup.bat" "The word "start" can be replaced at will, but the following .bat must be consistent with the editor's.
Click the Start menu again and enter "Group Policy" to start the Group Policy Editor.
Select "Computer Configuration - Windows Settings - Script (Startup/Shutdown)" in the tree list on the left , then double-click Start in the right column.
The most important part is here, click "Add" and then click "Browse" to select the new one you just created on the C drive "Start.bat", click OK to take effect.
In this way, the system will first load the executable command "start.bat" of the C drive when starting. , and "start.bat" will check whether there is a Key.sys file of the F drive according to the command inside. If it starts normally, if not, it will shut down within 20 seconds - now others can't do anything Start your computer now.
The above is the detailed content of How to use USB disk as boot key in win10. For more information, please follow other related articles on the PHP Chinese website!