A Simple BitLocker Utility

Talk about "WhatEVER !"..
Post Reply
Message
Author
hunterman223
Senior Member
Senior Member
Posts: 749
Joined: Thu May 13, 2010 4:27 pm

A Simple BitLocker Utility

#1 Post by hunterman223 » Tue Sep 14, 2010 5:22 pm

Hi, I have found out that it is not possible to re-lock a BitLocker encrypted data drive without either rebooting or via a command in command prompt. My solution (of course) was to create a simple batch program that allows you to either lock or unlock a drive. I have made comments in the file itself to aid in changing parameters, switches, etc. I have only tested it out in Windows 7, but if Vista uses manage-bde it should work. The program requires administrative privileges, so it is best to create a shortcut and change the properties of it. Then you can add your own fancy icon. :)

Hopefully someone may find this remotely helpful. For safety's sake I will post the contents of the batch file here. To make it into a real file, you paste the contents into notepad, save as, all file types, and add .bat to the end of the name. Let me know if you have questions.

Code: Select all

:: Simple batch program to change the locked state of BitLocker encrypted drives.
:: This program can be redistributed or edited as you wish.
:: See "manage-bde -help" for help with switches and parameters. 
:: (End Comment)
@echo off
color 0
echo Manage State of Bitlocker Encrypted Drive
echo.
echo.

:start 
echo 1. Lock Drive
echo 2. Unlock Drive
echo.
set /p choice=Enter a Number:
if %choice%==1 goto lockdrive
if %choice%==2 goto unlock

:lockdrive
cls
echo.
@echo off
echo Locking Drive...
echo.
manage-bde -lock E: -fd
:: Edit E: to reflect your BitLocker encrypted drive.
cls
echo The Drive has Been Successfully Locked.
echo.
pause
exit

:unlock
cls
echo Unlocking Drive...
echo.
manage-bde -unlock E: -pw
:: Edit E: to reflect your BitLocker encrypted drive.
:: Edit -pw to reflect the way you unlock your drive. (e.g. -pw for password)
cls
echo The Drive has Been Successfully Unlocked.
echo.
pause
Edit: Corrected minor error in code.
Hunter Thompson

ThinkPad T400: T9400, 8GB, LG WXGA+, Samsung 830 128GB + WD Scorpio Black 500GB, Intel 5300agn, Win7 Pro x64
Others: IBM ThinkPad R40, Sony VAIO NR Series, HP TouchPad running CM9, Jailbroken iPod Touch 4G

Post Reply
  • Similar Topics
    Replies
    Views
    Last post

Return to “Off-Topic Stuff”

Who is online

Users browsing this forum: axur-delmeria and 4 guests