Source: People's Network
To ensure the security of your computer and prevent others from opening your computer to view your private information, in addition to setting your personal password, you can also use simple settings to enable the computer to be started only after the computer is inserted into its own USB flash drive. Otherwise, the computer will be automatically shut down after the boot. The implementation process of this method is as follows:
1. first, determine the drive letter of the USB flash drive. You can insert your own USB flash drive, and then you can see the drive letter. This step is very important. If the drive letter is wrong, let your computer sleep;
2. Create a file in the USB flash drive. The file name and extension are all input. For example, the file created is 123.lj;
3. Create a batch file on the local disk (save it as. bat in Notepad) with the following statement:
IfnotexistI: \ 123. ljshutdown-s-t10-c "you cannot use this computer"
Here I is the U disk drive letter, which means that if the U disk does not exist 123. the lj file closes the computer 10 seconds later and displays the prompt "you cannot use this computer.
4. enter "gpedit. msc "Open the Group Policy and go to the following path:" Local Computer "policy → computer machine configuration → Windows Settings → script (start/stop ), select "start" in the box on the right, add the batch file you just created to the startup script list, and click OK and exit.
At this point, the computer can be started and enter the system only when a USB flash drive is inserted. Otherwise, a prompt will appear and the computer will be shut down within the specified time.
In addition, let's talk about the solution when the USB flash drive is lost:
1. If you have enough time, you can enter "shutdown-a" in the operation to cancel the shutdown command;
2. You can also delete the boot script from the computer to safe mode, because the boot script will not be loaded in safe mode.