 | | Welcome to Windows 7 Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows 7. The Windows 7 forum also covers news and updates and has an extensive Windows 7 tutorial section that covers a wide range of tips and tricks. | Windows 7 - Bitlocker - Lock an Unlocked Drive
Bitlocker - Lock an Unlocked Drive How to Lock an Unlocked BitLocker Drive
Published by tw33k
06-11-2010
| Bitlocker - Lock an Unlocked Drive How to Lock an Unlocked BitLocker Drive
Currently, if you unlock a drive that has been locked with Bitlocker, you will need to either restart explorer.exe or reboot your PC. Neither of these appeal to me so I found a way of adding "Lock" to the context menu menu which, when clicked, re-locks the drive.  Warning Involves editing the registry. Proceed with care if new to registry editing and back up your registry before hand Here's How:1. Open Notepad and paste this below in it. NOTE: Replace x: with the drive letter you wish to apply it to. manage-bde -lock x: -ForceDismount 2. Save the file as lock.bat to your desktop, then move it into your C:\Windows folder. 3. Open regedit and navigate to: HKEY_CLASSES_ROOT\Drive\shell 4. In the left pane of regedit, right click on shell, click on New and Key, type runas, and press enter. NOTE: This key may already exist with the value of TakeOwnership. If it does, name the new key runas(2) instead. 5. In the right pane of runas or runas(2), double click on (default) to modify, type in Lock and click on OK. 6. In the left pane of regedit, right click on runas or runas(2), click on New and Key, type command and press enter. 7. In the right pane of command, double click on (default) to modify, type in C:\Windows\lock.bat and click on OK. 8. In the right pane of runas or runas(2), click on a empty space and click on New and String Value, type in AppliesTo and press enter. 9. Double click on AppliesTo to modify, type in X: and click on OK. NOTE: Replace X: with the same drive location as you did in step 1. 10. Close regedit. Now, when you right click the drive, you'll see "Lock". Clicking this will re-lock your drive.
Micrsoft needs to fix this IMO but this is an excellent work around. Props to "Jonathon" for coming up with the original method. |  Published by | | Senior Member Join Date: May 2009 Posts: 3,159 | |
 Tutorial Tools | | | | | | | | | |
12-09-2010
|
#1 | | |
unable to copy lock.bat into c:\windows As per your suggestion, I tried to copy the notepad named lock.bat into c:\windows folder but the permission is denied even after logging in as admin.help me..,,
| My System Specs | | OS windows 7 ultimate x32 |
12-09-2010
|
#2 | | Windows 7 Ultimate x64 SP1 |
Hello Hackerboyessar, and welcome to Seven Forums.
Tutorial updated.
Save the file as lock.bat to your desktop, then move it into your C:\Windows folder.
Hope this helps,
Shawn | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
12-12-2010
|
#3 | | |
sir.,
Thanks for the concern.But even after doing all these things "correctly" as per the given order, I am getting a msg '"Filename,directory name or volume label syntax is incorrect"....what to do? | My System Specs | | OS windows 7 ultimate x32 |
12-12-2010
|
#4 | | Windows 7 Ultimate x64 SP1 |
Set known file extensions to be displayed, then double check to make sure that the lock.bat file name is name correctly and not something like lock.bat.txt instead.
Also make sure that the drive letter used in the command is correct for the drive. | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
03-03-2011
|
#5 | | Windows 7 Ultimate 64-bit |
I'm following the same exact steps and i get the same error when i try to lock the drive "Filename,directory name or volume label syntax is incorrect"... i triend on my both PC's... | My System Specs | | System Manufacturer/Model Number Custom OS Windows 7 Ultimate 64-bit CPU Intel Core2Quad Q6600 G0 Stepping Motherboard ASUS P5G41T-M LX Memory Corsair Value Select 4GB DDR3 Graphics Card XFX Radeon HD 6850 Black Edition 1GB GDDR5 Sound Card Built-In Realtek HD Audio Monitor(s) Displays Samsung 933BW Plus LCD (DVI) Screen Resolution 1440x900 Keyboard A4Tech X7 G800 Mouse A4Tech X7 XL-747H (3600dpi) PSU Cooler Master GX-550W 80 Plus Bronze Case Pasaris Matt Black Tower (Chinese) Hard Drives WD Caviar Blue 500GB SATA III 16MB Cache 7200-RPM (WD5000AAKX) Internet Speed 2MB Cable Broadband Other Info A4Tech HS-800 Gaming Headset | ASUS 18x DVD-RW (LightScribe) | Seagate 40GB IDE w/USB Enclosure | TP-Link TL-WR740N Router | SVC 1.2KVA Uninterruptible Power Supply | XBOX 360 Go Pro 20GB HDD/8GB USB with VGA Cable |
08-04-2011
|
#6 | | |
hello
I know I'm new but I need quick help. does this work also on unlocking eksternal drive that has been locked with BitLocker?
I'm trying to unlock it with recovery key but I get error message every time. can somebody help or redirect me to topic that could help? thx | My System Specs | | System Manufacturer/Model Number Dell Inspirion OS Windows 7 Ultimate 32bit CPU Intel Core i3 2.2Ghz |
08-04-2011
|
#7 | | Windows 7 Ultimate x64 SP1 |
Hello Itachi, and welcome to Seven Forums.
What is the error message that you are getting?
Did you click on the I forgot my password link to be able type in the Bitlocker recovery key as shown in it's .txt file?  | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 |
08-04-2011
|
#8 | | |
ok so this is the message I get ..
"Error recovering disk H: The recovery key you tipped is not correct.Type it again."
note that I already removed my password, started decrypting my external hard drive (took about 24 hours) and then at the end of unlocking, I guess because I wasn't there, I got message there is an error on drive please run disk check and there was some command but I clicked to close and did not wrote it down..
forgot to upload one more pic.. I am typing that number.. still got the same result
It put's dashes automatically..even if I try to put them nothing happens..
sry about that.. yeah I notice that also but he corrected me and send that one part was wrong.. the part where I put 9 instead of 0
I have a question.. this option that tw33k put here is for locking. so if I follow tutorial in my locked drive I should have option Unlock?
Last edited by ItachiSharingan; 08-04-2011 at 04:36 PM..
Reason: merged
| My System Specs | | System Manufacturer/Model Number Dell Inspirion OS Windows 7 Ultimate 32bit CPU Intel Core i3 2.2Ghz |
08-04-2011
|
#9 | | Windows 7 Ultimate x64 SP1 |
Be sure that you are typing in the real long number at the very bottom of that .txt file, and not the ID numbers above it. I can't remember if the dashes have to be included or not, so try both ways.
653939-............. EDIT for your addition:
You have a typo in that last number you typed. | My System Specs | | System Manufacturer/Model Number Self built custom OS Windows 7 Ultimate x64 SP1 CPU Intel i7-980X 3.3 Ghz (3.48 Ghz OC'd) Motherboard ASUS P6X58D Premium Memory 12 GB (2GBx6) DDR3 PC3-16000 2000 MHz Kingston HyperX Graphics Card Sapphire HD5870 Eyefinity 6 2GB Sound Card Realtek HD Audio ALC889 Integrated Chip Monitor(s) Displays 3x 27" Asus VE278Q Screen Resolution 1920x1080 Keyboard Logitech Cordless Desktop MX 5500 Revolution Mouse Logitech Cordless Desktop MX 5500 Revolution PSU OCZ Series Gold OCZZ1000M 1000W Case Corsair Obsidian 800D Cooling Thermalright Ultra 120 Extreme Copper CPU heat sink w/120 MM Hard Drives 160GB OCZ RevoDrive X2
** 2 x 1TB Samsung HDD HD154UI SATA Internet Speed 50 Mb/s Download and 2 Mb/s Upload Other Info Microsoft LifeCam Cinema
** Lite-On iHBS212 12x BD Writer
** Samsung CLX-3175FW Printer
** Netgear WNDR3800 Router
** Motorola SBG6580 Cable Modem
** 2x APC Back-UPS XS 1500 Bitlocker - Lock an Unlocked Drive problems? All times are GMT -5. The time now is 09:59 PM. |  |