Hi Gustave Verbraak,
Welcome to Microsoft Q&A forum. I'm happy to help.
I’m about to test a new idea—logging out before stepping away—to see if that forces the drive to lock.
As you said that, and your purpose is securing your drive, trigger BitLocker right after device lock is a better idea. Lock task is triggered before Sleep, also with you can lock your device manually with the combination Windows Key + L.
Since then, I will provide the method based on the idea "Auto Lock BitLocker on Device Lock".
- Open Task Scheduler
- Action > Create Task...
- General tab
- Name: Auto Lock BitLocker on Device Lock
- Choose Run whether user is logged on or not
- Check Run with highest privileges
- Triggers tab
- New...
- Begin the task: On workstation lock
- OK
- Actions tab
- New...
- Program/script:
cmd.exe - Add arguments (optional):
/c "manage-bde -lock <drive_letter>:"
Please replace<drive_letter>with your drive letter, example:/c "manage-bde -lock E:" - OK
- Conditions tab
- If you are using a laptop, for making sure, uncheck Start the task only if the computer is on AC power
- OK to save Task
- General tab
After your Task is created, you may test it right away by locking your device. If the task does not run, choose Enable All Tasks History > Test it again then comment me with the log.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.