I read this article today and I feel that it is good to share with you, let the computer start after inserting its own USB flash drive, otherwise it will automatically shut down after startup. The following is the implementation process of this method:
1. First determine the drive letter of the USB flash drive, you can plug your own USB flash drive, and then you can see the drive letter. This step is very important. If you mistake the drive letter, let your computer sleep. ;
2. Create a file in the USB flash drive, the file name and extension are arbitrarily entered, for example, the file created by the author is 123.lj;
3. Create a batch on the local disk The file (can be saved as .bat with Notepad), its content is as follows:
ifnotexistI:\\123.ljshutdown-s-t10-c"You cannot use this computer"
where I is the USB flash drive letter, this sentence means that if the file 123.lj does not exist in the USB flash drive, the computer will be shut down after 10 seconds, and the message "You cannot use the computer" will be displayed. .
4. In the run, type "gpedit.msc" to open the group policy and locate the following path: "local computer" strategy → computer configuration → Windows settings → script (start /Shut down), then select the "Start" item in the box on the right, and add the batch file you just created to the list of startup scripts, OK and exit.
You are done here. At this time, you can only start the computer and enter the system by plugging in the USB flash drive at boot time. Otherwise, the following prompt will appear and the computer will be turned off within the specified time:
Let me talk about the solution in the case of the loss of USB flash drive.
1. If there is enough time, you can enter "shutdown-a" to cancel the shutdown command during operation;
2. You can also start the script by deleting the computer into safe mode. Because it is not loaded in the safe mode
The computer is now powerful and can do a lot of things. Moreover, computer hardware is not expensiv
In the WinXP system we use, there are a variety of files, some of which can not be opened directly,
As we all know, WinXPs high compatibility allows users to play some early large-scale games, but in
In Windows Vista, one part of the Aero user interface is the Flip 3D effect, which is to implement d
Effective solution for desktop input method icon "missing"
XP System No Vulnerabilities Perfect System Security Ten Tips
Ingeniously recovering damaged files in the XP system
XP system blue screen error code 0x0000007b how to solve?
Xp Tips to Repair Lost BOOT.ini File
WinXP desktop icon flower screen color change solution
After double-clicking the shortcut, the system is no longer
Improve the speed of win xp system operation; modify the hard disk mode
Five tips for recovering XP administrator passwords
Is it feasible for WinXP to set virtual memory to 0?
Teach you how to prevent the top ten threats to network security (2)
What if Win8.1 IE11 can't open the local website?
How does the Win7 system exit the family group?
Windows7 third-party personalized mouse pointer how to delete
Mike Nash: Wishing Wall makes our Windows 7 more and more perfect
Windows 7 time and date method
How to set up the win10 start screen? Win10 start menu settings tutorial
Fun Windows7: Windows 7 and Vista system shortcuts Daquan (2)
Win7 how to set a key to restart or close the sleep mode to simplify the operation
Win8 how to change the default boot system
Win10 prompts "Server startup failed, port 80 is occupied" What to do