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



