Lock your BitLocker drives again in one click, without restarting Windows.
Windows keeps a BitLocker drive open after you unlock it until you restart Windows.
Re-Lock BitLocker lets you lock it again immediately, without restarting your computer.
This is useful when you have finished using an encrypted drive and want to lock it again before disconnecting it or leaving your computer.
- Lock BitLocker drives with one click
- Automatically detects BitLocker drives and their current state
- Lock an individual drive or all available drives
- Modern Windows 11-style interface
- Light and dark theme support
- English and Persian interface
- Persian interface supports right-to-left (RTL) layout
- No Windows restart required
- Windows installer
- Portable BAT script
- Free and open source
There are two ways to use Re-Lock BitLocker:
| Version | Best for | Download |
|---|---|---|
| App (Recommended) | Everyday use with a modern GUI | Download the installer |
| Script | Quick and portable use | Re-Lock-BitLocker.bat |
Download the latest version from:
The installer is self-contained, so you don't need to install .NET separately.
If you don't want to install anything, you can use:
Watch the demo to see how Re-Lock BitLocker can lock an unlocked BitLocker drive without restarting Windows.
- Download
ReLockBitLocker-Setup.exefrom the latest release. - Run the installer and follow the steps.
- Open Re-Lock BitLocker from the Start menu.
- Find the BitLocker drive you want to lock.
- Click Lock.
The application automatically detects your BitLocker drives and shows their current state.
You can also use Lock all to lock all available BitLocker drives.
- Download
Re-Lock-BitLocker.bat. - Double-click the file.
- Approve the administrator prompt.
- Enter the number of the drive you want to lock.
- Enter
Ato lock all drives orQto quit.
Administrator rights are required.
Both the application and the script will request administrator privileges.
The Windows system drive, usually C:, cannot be locked while Windows is running.
Re-Lock BitLocker uses force dismount when locking a drive.
This means that applications and files still open on the target drive may be closed.
Save your work and close applications using the drive before locking it.
- Windows 10 64-bit
- Windows 11 64-bit
- Windows editions that include BitLocker, such as:
- Pro
- Enterprise
- Education
Windows may display a "Windows protected your PC" warning because the installer is currently not code-signed.
If you downloaded the installer from the official GitHub Releases page and want to run it:
- Click More info
- Verify that you downloaded the correct release
- Click Run anyway
If you want to verify the downloaded file before running it, compare its SHA-256 hash with the value provided in SHA256SUMS.txt in the release.
You can calculate the hash on Windows with:
certutil -hashfile ReLockBitLocker-Setup.exe SHA256Only download releases from the official repository:
https://github.com/shafiei/Re-Lock-BitLocker/releases
Re-Lock BitLocker is free and open source.
The source code is publicly available on GitHub for inspection and review.
The application is designed to lock an already-unlocked BitLocker drive. It does not require decrypting the drive to perform the locking operation.
Official releases include a SHA-256 checksum file that can be used to verify the downloaded installer.
No.
The tool is intended to lock an already-unlocked BitLocker drive.
No.
The main purpose of Re-Lock BitLocker is to let you lock the drive again without restarting Windows.
No.
The Windows system drive cannot be locked while Windows is running.
Yes.
Administrator privileges are required for the BitLocker locking operation.
The application uses force dismount when locking the drive.
Files and applications using the drive may be closed.
Save your work before locking the drive.
Yes.
Re-Lock BitLocker is free and open source under the MIT License.
No for the released application.
The Windows application is published as a self-contained application.
- .NET 8 SDK
- Inno Setup 6 — only required if you want to build the installer
Run:
build.bat
This publishes a self-contained:
ReLockBitLocker.exe
to:
app\publish
If Inno Setup is installed, the installer is also generated at:
installer\output\ReLockBitLocker-Setup.exe
Re-Lock-BitLocker/
│
├── app/ WPF application (C#, .NET 8, WPF-UI)
├── installer/ Inno Setup script and installer assets
├── docs/ Logo and images used by the README
├── .github/ GitHub Actions workflows
│
├── Re-Lock-BitLocker.bat
├── build.bat
├── LICENSE
└── README.md
To publish a new release, create and push a version tag such as:
v1.0.1
The GitHub Actions workflow in:
.github/workflows/release.yml
automatically builds the installer and attaches it to the GitHub Release together with a checksum file.
See the latest releases:
Contributions, bug reports, feature requests, and suggestions are welcome.
If you find a bug or have an idea for improving Re-Lock BitLocker, please open an issue:
Pull requests are also welcome.
When reporting a problem, please include:
- Windows version
- Re-Lock BitLocker version
- What you expected to happen
- What actually happened
- Relevant screenshots or error messages
If Re-Lock BitLocker is useful to you, consider giving the project a ⭐ on GitHub.
A star helps the project gain visibility and makes it easier for other Windows users to discover it.
Re-Lock BitLocker به شما اجازه میدهد درایوهای BitLocker را پس از Unlock شدن، بدون Restart کردن ویندوز دوباره قفل کنید.
فایل ReLockBitLocker-Setup.exe را از صفحه Releases دانلود و نصب کنید.
سپس برنامه را باز کرده و کنار درایو موردنظر روی Lock بزنید.
اگر نمیخواهید برنامه را نصب کنید، میتوانید فایل:
Re-Lock-BitLocker.bat
را اجرا کنید.
- هر دو روش به دسترسی Administrator نیاز دارند.
- درایو ویندوز، معمولاً
C:، قابل قفل شدن نیست. - هنگام قفل کردن، درایو با Force Dismount جدا میشود و فایلها یا برنامههای باز روی آن ممکن است بسته شوند.
- قبل از قفل کردن، حتماً فایلهای خود را ذخیره کنید.
- اگر زبان ویندوز فارسی باشد، رابط برنامه نیز به صورت فارسی و راستبهچپ نمایش داده میشود.
- برنامه برای Windows 10 و Windows 11 نسخه 64 بیتی طراحی شده است.
Re-Lock BitLocker is released under the MIT License.
See the LICENSE file for details.
Created by Shafiei


