Risorse per professionisti IT > Home page del forum > Windows 7 Security > How to re-lock a drive with bitlocker
Formula una domandaFormula una domanda
 

Con rispostaHow to re-lock a drive with bitlocker

  • venerdì 29 maggio 2009 15.29mi23 Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    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

Risposte

  • lunedì 1 giugno 2009 10.24Robinson Zhang - MSFTModeratoreMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Con risposta

    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.

Tutte le risposte

  • lunedì 1 giugno 2009 10.24Robinson Zhang - MSFTModeratoreMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Con risposta

    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.

  • mercoledì 3 giugno 2009 15.10DeluxeWarPlaya Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    Any updates on this?
  • venerdì 3 luglio 2009 6.29superlative Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Risposta suggerita
    I too also need an update on this!
  • martedì 7 luglio 2009 9.45Ed McKinnon Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    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.
  • lunedì 10 agosto 2009 13.37Robin A Marshall Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     Risposta suggerita
    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
  • sabato 22 agosto 2009 11.20LoneWolf15 Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    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.
  • sabato 29 agosto 2009 14.05Inge Krossoey Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    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

  • domenica 30 agosto 2009 14.34st3v Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     

    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.

  • martedì 1 settembre 2009 18.54mi23 Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    this was the best answer ever;)
    -mi
  • venerdì 13 novembre 2009 12.11jonamafun Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    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
  • lunedì 16 novembre 2009 18.22stuckmoto Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    @jonamafun - followed exactly but getting "The filename,directory name, or volume label syntax is incorrect"
    any suggestions?
  • martedì 17 novembre 2009 12.36jonamafun Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    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:





  • mercoledì 18 novembre 2009 10.15Jajx Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     

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

  • domenica 22 novembre 2009 10.50Rick101c Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    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?
  • domenica 22 novembre 2009 11.07Rick101c Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    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...
  • domenica 22 novembre 2009 11.09Rick101c Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    Me, too; ever get a solution?

    Thanks
  • domenica 22 novembre 2009 14.26jonamafun Medaglie utenteMedaglie utenteMedaglie utenteMedaglie utenteMedaglie utente
     
    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.