Windows Client TechCenter > Windows 7 Forums > Windows 7 Security > How to re-lock a drive with bitlocker
Ask a questionAsk a question
 

AnswerHow to re-lock a drive with bitlocker

  • Friday, May 29, 2009 3:29 PMmi23 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I am using windows 7 bitlocker to encrypt a secondary hard drive. So I unlock the drive with the password successfully. Now how do I relock the drive? The only way I can see is to restart the machine. What bothers me is that even if you log off, and log in as another user the drive is still unlocked! Isnt there a menu item or option to re-lock it?
    -mi

Answers

  • Monday, June 01, 2009 10:24 AMRobinson Zhang - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi,

    I did several tests on my side, and I think this is a potential security bug. I will report it to our internal team.

    On the other hand, I do not have any workaround for this issue. Please temporarily restart the computer every time for security.

    Thank you for your understanding.

All Replies

  • Monday, June 01, 2009 10:24 AMRobinson Zhang - MSFTModeratorUsers MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer

    Hi,

    I did several tests on my side, and I think this is a potential security bug. I will report it to our internal team.

    On the other hand, I do not have any workaround for this issue. Please temporarily restart the computer every time for security.

    Thank you for your understanding.

  • Wednesday, June 03, 2009 3:10 PMDeluxeWarPlaya Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Any updates on this?
  • Friday, July 03, 2009 6:29 AMsuperlative Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    I too also need an update on this!
  • Tuesday, July 07, 2009 9:45 AMEd McKinnon Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Also looking for an answer on this.

    "this is a potential security bug" - I'd say definitely a security bug!

    An automatic relock timer might be a nice feature also.
  • Monday, August 10, 2009 1:37 PMRobin A Marshall Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Proposed Answer
    You can achieve this through the command line interface

    e.g. If P: were my private drive, I can re-lock it with the following command (run the cmd shell with Administrative rights though)

    To re-lock a Bitlocker drive on Windows 7 :

       manage-bde -lock P:

    Enjoy
  • Saturday, August 22, 2009 11:20 AMLoneWolf15 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks for this, Robin.  At least I can add a script and pin it to the Start Menu.

    This is still an issue in the RTM; I'm a little disappointed it made it through to release.
  • Saturday, August 29, 2009 2:05 PMInge Krossoey Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I made a .cmd-file to re-lock the drives:

    From a cmd-prompt, type the following:

    C:\Windows\system32>copy con lockdrive.cmd
    manage-bde -lock l:
    manage-bde -lock k:
    ^Z     [press CTRL-Z]
            1 file(s) copied.

    Replace l: and/or k: to the corresponding drive letter on your computer.

    Make a shortcut to the lockdrive.cmd-file, and check the "run as administrator" check box.


    Rgs,
    Inge

  • Sunday, August 30, 2009 2:34 PMst3v Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    I have the same problem. By the way, I am using Windows 7 RTM 64-bit. I also through group policy increased the cipher strength to "AES 256-bit with Diffuser".

    I encrypted a couple USB hard drives with Bitlocker To Go. I noticed another security issue on top of the one already discovered:

    When a Bitlocker To Go disk is connected, initially it is locked with the volume label hidden (as it should be). When you relock the drive using "manage-bde -lock drive:" the volume label is still showing.

    Edit: I have been testing this further by unlocking, relocking, and disconnecting the drive multiple times and I noticed that in "Computer" it eventually stopped showing a volume label for this drive when it is unlocked (until I restarted my computer). I am not sure why. But when I used the "dir" command it did show the proper volume label. This might be a bug in the "Computer" display of volume labels, it might not be re-reading the volume labels for drives properly.

    When a Bitlocker drive is relocked, it should be in the same state as if it were freshly connected. Also, logging off should automatically relock drives, or at least have an option in the Bitlocker control panel and/or group policy for that.

    Regarding the original poster's issue: Logically, one would think right-clicking the unlocked drive and choosing "Manage Bitlocker" would have an option to lock the drive.

  • Tuesday, September 01, 2009 6:54 PMmi23 Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    this was the best answer ever;)
    -mi
  • Friday, November 13, 2009 12:11 PMjonamafun Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Check my post here on how to do the 'Lock Drive' right-click menu entry:

    http://jonamafun.blogspot.com/2009/11/how-to-re-lock-bitlocker-drive.html
  • Monday, November 16, 2009 6:22 PMstuckmoto Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    @jonamafun - followed exactly but getting "The filename,directory name, or volume label syntax is incorrect"
    any suggestions?
  • Tuesday, November 17, 2009 12:36 PMjonamafun Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Try running the batch file from Windows Explorer to see if it actually locks your drive first.

    What did you name your .bat file and where is it located? Make sure you put the full path to the file at step 6.

    This is what my step 6 looks like:





  • Wednesday, November 18, 2009 10:15 AMJajx Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    This could work, but batch file needs to be run as administrator, don't know how to set it yet..

  • Sunday, November 22, 2009 10:50 AMRick101c Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I followed all the steps, but get an error popup:

    "The filename, directory name, or volume label syntax is incorrect"

    The .bat file it points to works fine.

    my runas\command\ looks just like the screen shot.

    Any ideas?
  • Sunday, November 22, 2009 11:07 AMRick101c Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    I followed all the steps, but get an error popup:

    "The filename, directory name, or volume label syntax is incorrect"

    The .bat file it points to works fine.

    my runas\command\ looks just like the screen shot.

    Any ideas?

    How do you add a screen shot to a post here?  I could show you what my reg keys look like.

    I did discover that I could make a shortcut to lock.bat; and in the advanced shortcut properties it lets you set "Run as Administrator".

    So ideally, the reg key setting could point to the shortcut.

    Thanks for any help...
  • Sunday, November 22, 2009 11:09 AMRick101c Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Me, too; ever get a solution?

    Thanks
  • Sunday, November 22, 2009 2:26 PMjonamafun Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    i used HTML tags to embed the image here...

    Have you tried testing with UAC turned off? I neglected to mention that I'm running without UAC (shhh!) so that may have something to do with it.