Lock your computer using USB flash drive

Posted on the December 9th, 2007 under Application, Tutorial by dicky

Do you know that we can use our USB flash drive as computer lock? You need a USB flash drive and a freeware called Log Monitor. This article will discuss the steps to configure them.

Log Monitor

Log Monitor is a freeware that has many usages. I try to go to the author page but i can’t understand the language, but i think most probably the author is a Russian. After playing with this application, i found that it can actually lock our computer and prevent others to login. The theory behind this is very simple. It keep monitoring your USB flash drive, once the file being monitored changed, or you remove the USB flash drive, this application will immediately lock your computer. If you remove your USB flash drive and the login to your computer, this application will immediately lock your computer again. Unless you hold the USB flash drive, else you can’t access that computer.

Step 1

You need to create a .log file in your USB flash drive. The file name can be anything and you can left your content blank. But, my advise is try to type something and make sure no people can get this file. I had create an example log file and will provide the download address at the end of this article.

Step 2

Go to Monitoring and choose Add File:

Lock PC Step2_1

Now, choose the log file that you created, and change the Do Action’s option to If the file has been changed. Please check the Perform action if monitored file does not exist so that this application can lock your computer when you unplug your USB flash drive.

Lock PC Step2_2

After that, switch to Options tab and set the interval to 1 second. This means Log Monitor will keep pulling each 1 second. If you think that this will affect your computer speed, you can set this value to higher.

Lock PC Step2_3

Step 3

Now, go to Actions tab and choose New -> Execute Program. Fill in the parametes below:

Command: C:\Windows\system32\rundll32.exe
Parameters: user32.dll,LockWorkStation
Start in: C:\Windows\system32

Lock PC Step3

Step 4

This is the final step. Go back to the main page and choose Options -> Program Options. At the General tab, check Minimize on start if you want Log Monitor minimize to system try when startup. Next, check the Start on user logon. Be careful, remember to make 1 copy of your log file if you check this. After you check this option, Log Monitor will automatically launch after you login. If you lost the log file, means you can’t control your computer anymore. After everything done, save the settings to your system and try unplug your USB. Your computer will be locked immediately!

You can download the example of log file and the configuration here. You can also download Log Monitor from Freeware-guide.

download from MediaFire

Popularity: 32% [?]

If you want to be notified the next time I write something, sign up for Email alerts or subscribe to the Rss feed. Thanks for reading.

Related Posts

  • Write protect your USB drive to protect it from virus
  • How to block a USB devices from connect to your computer
  • USB Ejector - Easily eject USB drive with just one click
  • How to “hide” your HDD partition from others
  • Search for free portable apps at app-stick.com
  • Instantly logoff, reboot and shut down your computer through tray icon
  • Vista Drive Icon - Turn XP drive icon into Vista style!
  • Dr.Web CureIt - Free portable antivirus
  • Free 5GB online storage from Gmail
  • Enhance your right-click with FileMenuTools and ClickZap
  • Random Posts

    14 Responses to 'Lock your computer using USB flash drive'

    Subscribe to comments with RSS
    1. Paddy Tan said, on December 9th, 2007 at 11:19 am

      I am using this program too, very easy to set up. I included my own company’s product also to prevent the USB from getting lost. Guess it is a work habit :)

    2. dicky said, on December 9th, 2007 at 5:34 pm

      @Paddy: Yup, it is very easy to setup. But i will make a copy of my log file for emergency use. Else, you can;t open your PC anymore if you lose your USB drive.

    3. Venkat said, on December 9th, 2007 at 9:36 pm

      Nice app for securing the system, good find.

    4. Wing Loon said, on December 11th, 2007 at 12:55 am

      dicky, it is a good move to backup the log file…stored it in a secure place, :)

    5. Brendan said, on February 13th, 2008 at 2:01 pm

      There is one major issue with this.

      If I were to plug a drive into my computer as the “K” drive, and placed the file there — it would work everytime that drive mounts to the letter “K.”

      However, if I plugged in another drive first, there is a chance that “K” drive will be “L” and it will log me out instantaneously — even though I have the drive plugged in.

      Is there anyway to make it so that as long as it’s in drives “X-Y” (example) it would allow me to login?

    6. dicky said, on February 17th, 2008 at 8:58 pm

      @Brendan: I don’t think it will work. If you plug in another drive first, the application will log you out because the application won’t search “L” for the file.

    7. sam said, on April 18th, 2008 at 4:24 am

      what happens if i lose my flash drive? and i no longer have the Log file?

    8. dicky said, on April 18th, 2008 at 9:41 pm

      @sam: If you lose your flash drive, then u will not able to log in to your windows. You may try safe mode, but i am not sure it works or not. The best way is to backup your log file and send to your own email account.

    9. Brad said, on April 30th, 2008 at 12:08 am

      is it possible to use an sd card i have a million of them

    10. dicky said, on May 1st, 2008 at 12:49 pm

      @Brad: You can use your SD card to store the log file, but remember to email a backup to yourself. Else you won’t able to log in to your PC once the SD card spoil.

    11. usb computer lock said, on June 13th, 2008 at 6:35 am

      [...] our usb flash drive as computer lock? You need a usb flash drive and a freeware called Log Monitor.http://www.techsnack.net/lock-your-computer-using-usb-flash-driveUSB PC lock3.0 - Computer Sentry Information Technology Co.,LtdUSB PC lock3.0, Leave your desktop or [...]

    12. Will said, on August 5th, 2008 at 2:01 am

      I love this. What I need now is some way to plug it back in and have the machine sign me back on. Ideas?

      http://www.softtreetech.com/24×7/archive/51.htm

      I have used the above URL’s script in another scenario and it worked well, but it had a trigger that allowed its use. I’m unsure of how to use this script in conjunction with the “Log Monitor” program.

      Thanks to all who share ideas!

    13. Enoch said, on September 30th, 2008 at 4:45 pm

      how do I create a .log file??? please help me…!!!!

    14. dicky said, on September 30th, 2008 at 6:00 pm

      @Enoch: You can simply create a new file with .log extension.

    Leave a Reply
    XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>
    -->

    Top Commentators

    Entrecard