In my latest post I explained how to encrypt a drive with Bitlocker to avoid unauthorized access to your data.
After unlocking a drive, sometimes you may want to lock the drive again.
I couldn’t find any option in the user interface to do this (the only way seems to be reboot the PC).
Searching in the internet I discovered that you can manage Bitlocker from the Windows command line.
The script to lock the drive is as follow:
manage-bde -lock F:
Of course you have to replace “F:” with your drive letter.
For convenience you could create a file with “.bat” extension and write the command above into that file. In this way you can lock the drive with a double click on the batch file.
Perhaps there could be better solutions, but as you know I’m a dummy programmer and this is the only one I found.