IT 专业人士的资源 > 论坛主页 > Windows 7 Security > How to re-lock a drive with bitlocker
提出问题提出问题
 

已答复How to re-lock a drive with bitlocker

  • 2009年5月29日 15:29mi23 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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

答案

  • 2009年6月1日 10:24Robinson Zhang - MSFT版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     已答复

    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.

全部回复

  • 2009年6月1日 10:24Robinson Zhang - MSFT版主用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     已答复

    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.

  • 2009年6月3日 15:10DeluxeWarPlaya 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Any updates on this?
  • 2009年7月3日 6:29superlative 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     建议的答复
    I too also need an update on this!
  • 2009年7月7日 9:45Ed McKinnon 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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.
  • 2009年8月10日 13:37Robin A Marshall 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     建议的答复
    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
  • 2009年8月22日 11:20LoneWolf15 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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.
  • 2009年8月29日 14:05Inge Krossoey 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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

  • 2009年8月30日 14:34st3v 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

    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.

  • 2009年9月1日 18:54mi23 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    this was the best answer ever;)
    -mi
  • 2009年11月13日 12:11jonamafun 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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
  • 2009年11月16日 18:22stuckmoto 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    @jonamafun - followed exactly but getting "The filename,directory name, or volume label syntax is incorrect"
    any suggestions?
  • 2009年11月17日 12:36jonamafun 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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:





  • 2009年11月18日 10:15Jajx 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     

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

  • 2009年11月22日 10:50Rick101c 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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?
  • 2009年11月22日 11:07Rick101c 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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...
  • 2009年11月22日 11:09Rick101c 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    Me, too; ever get a solution?

    Thanks
  • 2009年11月22日 14:26jonamafun 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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.