I did an experiment today, so that the computer can be started 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 file on the local disk (Save as .bat with Notepad), its content is as follows:
if not exist I:\\123.lj shutdown -s -t 10 -c "You cannot use this computer"< Br>
Here I is the USB flash drive letter, this sentence means that if there is no 123.lj file in the USB flash drive, the computer will be turned off after 10 seconds and the prompt "You can not use this computer" is displayed. information.
4. Enter "gpedit.msc" in the run to open the group policy and locate the following path: "Local Computer" Policy → Computer Configuration → Windows Settings → Script (Start /Shutdown), then on the right Select the "Start" item in the box 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 when you turn on the USB flash drive. Otherwise, the following prompt will appear and the computer will be turned off within the specified time:
Message Tips
In addition, let's talk about the solution in the case of USB flash drive loss.
1. If there is enough time, you can enter "shutdown -a" in the run to release the shutdown command;
2. You can also start the script by deleting the computer into safe mode. Because the boot script is not loaded in safe mode.
Microsoft officially claims that under the same hardware configuration, Windows 7 system startup spe
In the process of using the computer, we will inevitably encounter some problems. For example, some
I often have friends who say that their computer use feels very slow. What should I do? Reinstall th
Symptom: When you start the system interface, you cant open anything, you have to wait a minute or s
The priority of the win xp system startup item is
Avoid virus attacks System defense has a coup
Win XP system's own functions can also hide important files
Optimized Windows XP system suitable for playing games
See how to set the folder properties to the system folder
Windows XP prohibits access to Task Manager
Windows loyal users will also fall in love with Apple Mac
14 strokes security settings to prevent hacker attacks (2)
Two hands and two empty tricks cleverly hide Windows XP files
Delete duplicate files Save a lot of disk space
Teach you how to find self-starting program skills
A simple solution to the problem that the firewall can not be started
Teach you how to downgrade IE11 to IE10. Step
Win10 view WIFI password method
Win8 uses the shortcut key to turn off the computer, win8 shutdown method
How to solve the Win8 computer blue screen? What should I do if the computer has a blue screen?
How can I cancel the music sound when vista starts?
How to block an IP or IP segment from accessing your site via IIS settings