How To Relock Bitlocker Encrypted Drive In Windows 7

HOW TO RELOCK BITLOCKER ENCRYPTED DRIVE IN WINDOWS 7

How to Relock the Bitlocker encrypted drive without restarting system?   Adding a Direct option to the right click menu.


Here is a small and easy method for adding  "Lock Drive..." to the Explorer right-click context menu.

1) Open  Notepad and copy and paste following code, and save it as "Lock.reg"


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Drive\shell\Lock Drive...\command]
@=hex(2):77,00,73,00,63,00,72,00,69,00,70,00,74,00,2e,00,65,00,78,00,65,00,20,\
00,6d,00,61,00,6e,00,61,00,67,00,65,00,2d,00,62,00,64,00,65,00,2e,00,76,00,\
62,00,73,00,20,00,2d,00,6c,00,6f,00,63,00,6b,00,20,00,2d,00,66,00,6f,00,72,\
00,63,00,65,00,64,00,69,00,73,00,6d,00,6f,00,75,00,6e,00,74,00,20,00,25,00,\
31,00,00,00

2) Open Notepad , and paste following code, Save the following script as "manage-bde.vbs"
and copy to the folder "C:\Windows\System32"



Set oWSH = CreateObject("Wscript.Shell")
Args = ""
Last = Wscript.Arguments.Count - 1
For i = 0 To Last
Args = Args & " " & Wscript.Arguments.Item(i)
Next
Args = Replace(Args,"\","")
RetVal = oWSH.Run("manage-bde.exe" & Args,0,True)
Wscript.Quit RetVal