How does the computer set up two power-on passwords

Source: Internet
Author: User
Tags ukey root directory

Make a U disk to do a computer lock! Start the computer will do a lock on the U disk plug can start the machine, no U-disk can't open!

is to use Windows from the boot script, as long as write a script, let Windows judge whether there is a U disk on a file, no shutdown or cancellation.

Method: First Open Notepad, enter the following content and save as Ukey.bat

@echo off

If not exist e:test.txt Shutdown-s-T 0

Code Explanation:

E:test.txt you can set your own file name and type, such as Jannick.jpg or Jannick.exe, the key is E:, first you have to know what your computer to the U disk to give the letter, such as my is e disk, you may be different, please adjust their own.

Arbitrary find a file, named Test.txt and put it in the root directory of U disk, the file name is the same as above.

Shutdown parameters I do not explain too much, want to study the can be entered under cmd shutdown/? Look at the detailed instructions, I'm here to shut down the machine

Not rookie look: XP system users directly access the following folders, but to the folder options in the "Display System Folder Content" open, copy Ukey.bat to the destination folder.

%systemroot%system32grouppolicyuserscriptslogon

Rookie look: Copy Ukey.bat to C or other places you can find.

Next, click Start---Run---gpedit.msc---Computer Configuration---Windows Settings---Script--add Find your ukey.bat and add it---OK---sure, OK.

So the next time you start your computer, you'll have to plug in a USB drive.

Note : More wonderful tutorials Please pay attention to the triple computer tutorial section, triple Computer office group: 189034526 welcome you to join

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.