Windows 8 and 8.1 Forums


"Lock Drive" - Add to Context Menu of BitLocker Drives

  1. #40


    Posts : 22,279
    64-bit Windows 10


    Ok. I look forward to hearing your results.

      My System SpecsSystem Spec

  2. #41


    Posts : 14
    Windows 10


    Ok, rebooted, tried it again with the new script and it's doing the same thing. First iteration works fine but if I unlock the drive a 2nd time the "Lock drive" option isn't displayed. The option still says "Unlock drive". Clicking on it or the drive letter gives a message that the drive is already unlocked. I can only access the drive by selecting "Open in new window".
    Last edited by bombadil; 26 Aug 2016 at 09:30.
      My System SpecsSystem Spec

  3. #42


    Posts : 22,279
    64-bit Windows 10


    bombadil,

    I'm encrypting a drive now to do some more tests on this to see what may have changed, but it will take a while to finish encrypting.

    For now, you can merge the .reg file below to remove the "AppliesTo" string value from the "HKEY_CLASSES_ROOT\Drive\shell\lock-bde" key to have "Lock Drive..." always available on all drives as a workaround until I get it sorted.

    Workaround_lock-bde.reg
      My System SpecsSystem Spec

  4. #43


    Posts : 22,279
    64-bit Windows 10


    bombadil,

    I just tested this using the original script from the tutorial in Windows 10 build 14393.82, and I'm not getting the issue you described. I locked and unlocked the drive several times in a row, and no issue.

    As a test when this happens for you, see if you are able to manually lock the drive using the command below in an elevated command prompt.

    manage-bde -lock <drive letter>:
      My System SpecsSystem Spec

  5. #44


    Posts : 14
    Windows 10


    Thanks again for your help. I'm copying a large folder to my encrypted drive at the moment so can't test the manual command, but will try it soon and let you know.

    One more thing that may have caused my problem, when I initially ran the reg edit script and used the "Lock drive" option I had the vbs script in the wrong folder (not in System32), which caused an error. I then put it in System32 and it worked fine. I've rebooted since, and as I mentioned it works one time. Just wanted to mention that initial installation mistake in case that created an issue on my system.
      My System SpecsSystem Spec

  6. #45


    Posts : 22,279
    64-bit Windows 10


    Nar, that mistake would have only caused an issue of it not be able to run the .vbs until you had it in the correct folder.
      My System SpecsSystem Spec

  7. #46


    Posts : 14
    Windows 10


    Ok, understood on that initial mistake.

    Just tried the manual lock command and got this:

    C:\WINDOWS\system32>manage-bde -lock f:
    BitLocker Drive Encryption: Configuration Tool version 10.0.10011
    Copyright (C) 2013 Microsoft Corporation. All rights reserved.

    ERROR: Access was denied when attempting to lock the volume. Applications
    may be accessing this volume (code 0x80070005).

    Add the "-ForceDismount" parameter to lock the volume even when it is in use.

    I made sure Explorer was closed, so not sure why it thinks the drive is being accessed. One other point, the drive is a external USB.
      My System SpecsSystem Spec

  8. #47


    Posts : 14
    Windows 10


    Tried this:

    manage-bde -lock -ForceDismount f:

    It worked. The "Unlock drive" option shows up in Explorer. Unlocked the drive, but have the same issue as with the script. Since it had been unlocked/locked previously Explorer still says "Unlock drive" instead of "Lock drive".
      My System SpecsSystem Spec

  9. #48


    Posts : 22,279
    64-bit Windows 10


    Odd. Does the "Lock Drive" context menu stay and work when you test the workaround below?

    "Lock Drive" - Add to Context Menu of BitLocker Drives
      My System SpecsSystem Spec

  10. #49


    Posts : 14
    Windows 10


    Quote Originally Posted by Brink View Post
    Odd. Does the "Lock Drive" context menu stay and work when you test the workaround below?

    "Lock Drive" - Add to Context Menu of BitLocker Drives
    Yes. Both "Lock drive" and "Unlock drive" show up but "Lock drive" doesn't do anything. If I click on it and then click on "Unlock drive" I get the message the drive is already unlocked.
      My System SpecsSystem Spec

Page 5 of 7 FirstFirst ... 34567 LastLast
"Lock Drive" - Add to Context Menu of BitLocker Drives
Related Threads
How to Change the Default Program of the "Edit" Context Menu in Windows This tutorial will show you how to change the default program that the "Edit" context menu item opens a file with to edit it in Vista, Windows 7, and Windows 8. This is only applied to the user account that uses this,...
I want to remove the option of “Format” from context menu for drives. Could I get some help on how to do this?
Hi, I'm using Windows 8.1 x64 and I'd like to add to the MAIN menu of context menu (just right-clicking) the options to create a New Folder and a New Text Document. Right now I have to go to the "New" option and then select Folder or Text Document. Thanks! :party:
Hello Brink, Instead of having shortcuts on my desktop, could I use a similar trick to add a "shortcut" Cascading Desktop Context Menu in Windows 8.1, under of which I can have all my shortcuts to applications or files? I have a file named registry.vbs with which I open directly a key in the...
How to Add Quick Launch to "Send to" Context Menu in Vista, Windows 7, and Windows 8 This will show you how to add Quick Launch to the Send to context menu of your user account in Vista, Windows 7, and Windows 8. This will make it easer to add a copy of items you want to Quick Launch on...
How to Add "List Hidden Files" to Context Menu in Vista, Windows 7, and Windows 8 This tutorial will show you how to add "List Hidden Files" to the context menu of folders and drives to get a list of all hidden files in them in Vista, Windows 7, and Windows 8. While you must be signed in as...
How to Add "List Read-only Files" to Context Menu in Vista, Windows 7, and Windows 8 This tutorial will show you how to add "List Read-only Files" to the context menu of folders and drives to get a list of all read-only files in them in Vista, Windows 7, and Windows 8. While you must be...
Eight Forums Android App Eight Forums IOS App Follow us on Facebook