Lock Drive with Bitlocker?

severedsolo

Jack of all Trades
Guru
Gold Member
VIP
Local time
10:40 PM
Messages
3,381
Location
Norfolk UK
just wondering, when a drive has been unlocked with bitlocker, is there a way to lock it again without restarting the PC?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Medion Erazer (note to self: insert model number) - with custom additions
OS
Windows 10 Pro x64
CPU
Intel Core i5 7400 @ 3.00GHz
Motherboard
OEM supllied with PC
Memory
8GB 2133Mhz DDR4 (OEM supplied)
Graphics Card(s)
Gygabyte Windforce GTX 1050Ti (Factory Overclocked)
Sound Card
Realtek
Monitor(s) Displays
Acer Al1980 + HKC
Screen Resolution
1360*768(HKC) / 1280*1024(Acer)
Hard Drives
1TB Toshiba
1TB WD Caviar Green
120GB Samsung Evo 840
PSU
OEM supplied (no power rating on case)
Case
OEM Supplied
Cooling
Stock
Keyboard
Logitech Wireless
Mouse
Logitect Wireless
Internet Speed
40Mb/s Down 10Mb/s Up
Antivirus
Defender
Browser
Firefox
How to re-lock a Bitlocker drive

So you've turned on Bitlocker encryption for a drive. You've unlocked it and done your work, but how do you re-lock it? Here's how to add an entry to the right-click context menu to re-lock the drive.

1. Open up Notepad and type in the following, replacing 'E:' with the drive letter of your Bitlocker drive:
manage-bde -lock E: forcedismount
2. Save the file as lock.bat somewhere accessible, such as C:\Windows or C:\Program Files\

3. Open up Registry Editor. Navigate to the following Key:
HKEY_CLASSES_ROOT\Drive\shell
4. Create a new key named runas with the default value set to Lock.
5. Now right-click on runas in the left window pane and create a new key called command.

6. Set the value of the Default Entry to c:\windows\lock.bat or whatever locaiton you chose at step 2.

7. Navigate back to the runas key and create a new String Value called AppliesTo. Set the value to E: or whichever drive you have encrypted.

8. Goto Windows Explorer and test your new right-click context menu entry!

Use caution when in Registry!

This feature is implemented in Vista, so I guess it will be in Windows 7 too.
 

My Computer

Computer Manufacturer/Model Number
ASUS
OS
Windows 7 RC.
CPU
Quadcore 2.4
Motherboard
ASUS 5pro
Memory
4GB
Graphics Card(s)
Radeon 4850
Sound Card
Internal HD and Soundblaster.
Monitor(s) Displays
Asus VK246H Full HD.
Hard Drives
Lots
PSU
600W
Case
Black ;)
Cooling
Fan
Hi Raggyman and welcome to Windows 7 Forums :)

id forgotten about this post.... thanks for this iv been doing it through Command Prompt, but this is a much easier way +rep+
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Medion Erazer (note to self: insert model number) - with custom additions
OS
Windows 10 Pro x64
CPU
Intel Core i5 7400 @ 3.00GHz
Motherboard
OEM supllied with PC
Memory
8GB 2133Mhz DDR4 (OEM supplied)
Graphics Card(s)
Gygabyte Windforce GTX 1050Ti (Factory Overclocked)
Sound Card
Realtek
Monitor(s) Displays
Acer Al1980 + HKC
Screen Resolution
1360*768(HKC) / 1280*1024(Acer)
Hard Drives
1TB Toshiba
1TB WD Caviar Green
120GB Samsung Evo 840
PSU
OEM supplied (no power rating on case)
Case
OEM Supplied
Cooling
Stock
Keyboard
Logitech Wireless
Mouse
Logitect Wireless
Internet Speed
40Mb/s Down 10Mb/s Up
Antivirus
Defender
Browser
Firefox
Back
Top