Let U disk as a boot key

 

 

  In public, there are often some criminals take advantage of the time we are not in the computer field, secretly turn on the computer log in to view our privacy operations, and even some illegal computer system sabotage. In order to prevent others to freely log in to your system, many people tend to choose a dongle to protect the system, once the dongle is not supported, then no one can freely enter a computer system. However, for ordinary computer systems, specifically to choose a dongle to protect system security, obviously overkill ; in fact, we can set appropriate, make their own hands, U disk " transformed " into a system startup keys to play to the role of simple dongle. Now, following the setting operation, their hands U disk will become the future start their own system of " key " , and this is not the key, the average person can not properly use their own computers:

  First U disk into your computer system and create a file in which arbitrary, we assume the file named "aa.txt" , the document is to make practical use of the local computer system able to identify the interpolated U our plate is designated U disk, rather than others freely inserted U disk, so that we can achieve U disk as a boot " key " uniqueness ;

  Second open Notepad editor, and enter the following commands in the text editing window line of code:

  @echo off

  if not exist F: "aa.txt shutdown -s -t 5 -c" You do not start the key, banned from the system . "

  Wherein "F" disk is assumed to be U disk partition corresponding to the symbol, after confirming the above code is entered correctly, click in the text editing window " File " / " save " command to save the contents of the above "aa .bat " batch file, future Windows systems Once the file is executed, it automatically scans the local system is plugged into the U disk, and in the designated U whether there is a root directory " aa.txt " file, if there is no U disk or insert U disk is not "aa.txt" file, Windows system will automatically shut down the system pop-up tips, and 5 forced to shut down a computer system within seconds, so that you do not specify U user disk naturally can not be free use the local computer system.

  To make Windows system at that moment startup automatically execute "aa.bat" batch file to determine whether the current user is a legitimate user, we can follow the setting operation, "aa.bat" added to the batch file boot script on the local system:

  First, click " start " / " run " command in the pop-up system run dialog box, enter the string command "gpedit.msc" , click " OK " button, open the Group Policy console window corresponding to the system ;

  Second display position, in order to select the left side of the console window of the " Computer Configuration " / "Windows Settings " / " script " branch option, in the corresponding " script " display area on the right branch options field , double click " start " option, open as shown in FIG 2 disposed in the dialog box shown ;

    

     Figure 2 Edit Script

  Click the dialog box " Add " button in the dialog box, select the previously generated from the file that appears ever since "aa.bat" batch file to select and import in, and finally click " OK " to save the good Settings button operation, this way we are in the hands of U disk in the future will be able to start their own system as the " key " , and if there is no other person that the " key " , of course, is not at liberty to access their own computer system has.

 

Reproduced in: https: //www.cnblogs.com/yitian/archive/2009/05/26/1489387.html

Guess you like

Origin blog.csdn.net/weixin_34395205/article/details/93710356