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 and save it as Notepad. Bat), the content is as follows:
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 startup/shutdown ), 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, when the USB flash drive is lostSolution:
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.
- Analysis of U disk viruses and Autorun. inf files
- Recommended four USB flash drive antivirus software for enhanced mobile security