How to re-lock a drive with bitlocker
- 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
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.
- Contrassegnato come rispostaRobinson Zhang - MSFTModeratorelunedì 1 giugno 2009 10.24
Tutte le risposte
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.
- Contrassegnato come rispostaRobinson Zhang - MSFTModeratorelunedì 1 giugno 2009 10.24
- Any updates on this?
- I too also need an update on this!
- Proposto come rispostaRobin A Marshall lunedì 10 agosto 2009 13.32
- 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.
- 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- Proposto come rispostaRobin A Marshall lunedì 10 agosto 2009 13.37
- 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. - 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
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.- this was the best answer ever;)
-mi - 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 - @jonamafun - followed exactly but getting "The filename,directory name, or volume label syntax is incorrect"
any suggestions? - 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:
This could work, but batch file needs to be run as administrator, don't know how to set it yet..
- 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? - 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... - Me, too; ever get a solution?
Thanks - 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.

