Create an USB key to lock and unlock Windows 7 to enhance security

Download PDF

Corsair Flash Voyager GT Icon

It is possible to lock down Microsoft Windows 7 with a USB key, so that no one can start Windows 7 without having this USB pen drive or thumb drive. The principle of this tutorial stands on the database security accounts manager (SAM Security Accounts Manager). This database Data is encrypted with a key system and stored locally.

You can use the utility SysKey to further secure the SAM database by storing the encryption key for this database outside of the computer.

If you store this database on a USB key at every system startup, Windows will ask you to insert the USB key, and without this key can not boot into Windows 7.

Warning: Without the USB key, you can not run Windows 7 . It is applicable for all users of that PC

Step 1:
The utility can save the syskey low data account manager on a floppy disk, therefore the USB drive is seen as a floppy disk; you will have to change the letter of the USB drive A: to your desired label.

Insert the USB pen drive or thumb drive.

On the Start menu, right click on Computer then click Manage:

Create an USB key to lock and unlock Windows 7-1
In Computer Management, click Disk Management:

Create an USB key to lock and unlock Windows 7-2

The letter of the USB pen drive is H in our example. Right click on the USB key in the right sided pane, then select Change Drive Letter and paths… :

Create an USB key to lock and unlock Windows 7-3

Click it and assign A as drive letter:

Create an USB key to lock and unlock Windows 7-4

It will give certain security prompts, accept them. It will take a few seconds to minutes, depending on the size, data present on the pen drive to get the drive letter changed.

You will see the pendrive now has changed its letter to A, both in Computer Management Console and My Computer.

Create an USB key to lock and unlock Windows 7-5

Close the Computer Management Console window.

Step 2:

Add Run on the Start menu:

Right-click Start, click Properties; under the Start Menu tab, click Customize, check the Run command box . Click the OK button:

Create an USB key to lock and unlock Windows 7-6

The Run command will be added to start menu.

Step 3:

Working on computer’s database security accounts manager (SAM) on the USB

On the Start menu, click Run; type “Syskey” (without quotation marks) and click OK; Windows account database manager will appear, click the Update button:

Create an USB key to lock and unlock Windows 7-9
The following windows will appear, change  the radio button under “System generated password” field from default “Store startup key locally” to “Store startup key on floppy disk” :

Create an USB key to lock and unlock Windows 7-10

Several prompts will appear. Just click OK to them.

Note: If you open your pen drive in Windows explorer, you will see a syskey.key file. Never delete it. Deleting it will leave no other way than to format and use the computer.

When you start the computer, you will see this message:

This computer is configured to use a floppy disk during startup. Please insert the disk and click OK

Insert your USB drive and click ok . Without the USB it is impossible to start Windows 7. If you insert the USB drive you will see the logon screen to enter your normal user password.

If you want to cancel your USB key protection:

Do the same as Step 3, just change the password saving option to “Save the startup key locally” and click OK :

Create an USB key to lock and unlock Windows 7-11

Searched Terms:

administration usb lock in windows 7, usb flash lock on windows 7, usb key menu, usb security boot key, usb startup key windows 7, use a USB to unlocl windows, win 7 usb lock, windows 7 secur usb key, Windows 7 USB security Key, unlock windows with usb

Here’s what we’ve got for you which might like :

Also, we have YouTube Videos and Apple iTunes Podcast Channel (the link will open iTunes App on Mac).

Additionally, performing a search on this website can help you.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Google+ or Twitter to join the conversation right now!

If you want to Advertise on our Article or want Business Partnership, you are invited to Contact us.

Contact Us


  1. Nicky Hendriks says


    Is it possible to put this file on a floppy, and for back-up on my regular USB flash drive?

  2. says

    Possible. Follow age old method (i.e. Skip the renaming the USB flash drive as A drive in our tutorial).

    Keep in mind, Floppy can get easily corrupted than USB drive.

  3. says

    can I copy this to a second usb drive so that I have a spare copy?

    can this be use to protect a computer when traveling? I want to
    close all programs, exit (shut down) the computer) and then remove the
    usb key. At a later date, I want to restart the computer but not have
    it usable until I reinsert the usb key.? ( Or posibly I may need to
    insert the usb key before powering up the computer.

  4. says

    1. Yes, you can. Make to show all the hidden files and system files before copying or you can use SAM to save the key again.

    2. For traveling, if you have very important and sensitive data, use hardware level protection (Similar looking usb key, but works differently at the hardware level).
    This method of protection can be broken by high level hackers, this is not fool proof.

    3. It will ask you for the usb key to insert (will ask for floppy actually) if you power on without the USB key at the login screen. You can remove after the login and startup. But once you close the session (hibernate, shut down etc) it will ask for the usb key again.
    If you have dual boot (two operating systems) then your hard disk can be accessed from other operating system : keep it in mind!

  5. Jacob says

    Thank you so much for this fantastic tutorial i have wanted to be able to do this again for so long.

  6. Liam says

    Just a quick question, just want to make sure before I do that with my 32GB key… The key will still be able to contain other files right and used as a regular key right ?

  7. says

    Yes, definitely. Only remember not to delete (or format it) the important file needed for the operation to execute USB key to lock and unlock Windows.

  8. Jay Patel says

    Hello…!!! i had the file on my pendrive and due to virus on it i had to format it plugging it to the other machine…!!! now i cant start my computer…!!! help…!!! Urgent Help needed…!!


    -Jay Patel

  9. Jay Patel says

    Its windows OEM…!! I havent formatted my vaio yet so its the original win 7 home premium 64x…!!

  10. says

    There are two ways to get back your files on that Windows PC (I am taking you have no backup of the Key, if you have the backup of the key, copy on USB and boot, it will work). First way is to use a retail Windows 7 DVD and install Windows without formating it. You will get all the files in a folder named Windows.old ; where windows folder will be (usually at C drive lettered partition).
    Second way is to hack it. It is quite easy as Windows has no practical security. The retail DVD will be required. Please search YouTube for it. We can not publish the method as it actually can be applied on any Windows PC.
    In future, try to use Ubuntu 12.04 (it is free) alone or in dual boot if you can not afford a Mac. None of them usually get virus. The first one is fully free.

  11. says

    By the way, you can boot from Ubuntu’s Live version or Windows PE USB live OS to move the files. With Ubuntu pen drive version, you can actually burn DVDs.

  12. Jay Patel says

    Great…!!! Did the 1st one…!! Installed windows without formatting it…!!!


    I will search for hacking thing as i m interested…!! I knew all these ideas as i’m a student of M.Sc IT only…!!! :) then too thanks a lot…!! If can get your E-Mail it wld b great…!!