Windows 10: Bitlocker lock/unlock batch

Discus and support Bitlocker lock/unlock batch in Windows 10 Ask Insider to solve the problem; I want to make a batch to check if bitlocker is locked or unlocked on my D: partition. 'manage-bde -lock D:' to lock it and 'manage-bde -unlock D:... Discussion in 'Windows 10 Ask Insider' started by /u/RandyBobandyyyyyy, May 26, 2020.

  1. Bitlocker lock/unlock batch


    I want to make a batch to check if bitlocker is locked or unlocked on my D: partition.

    'manage-bde -lock D:' to lock it and 'manage-bde -unlock D: password 123pass456' to unlock.

    I can check its status by typing 'manage-bde -status D:'

    Any help would help, I think if any 'grep" like command would help for the script to know if its locked or unlocked, and then any conditional, like 'if-else' to follow either the lock or the unlocked path. But i'm just guessing.

    submitted by /u/RandyBobandyyyyyy
    [link] [comments]

    :)
     
    /u/RandyBobandyyyyyy, May 26, 2020
    #1
  2. Viruzz Win User

    HELP: Automatic BitLocker Unlock.

    Thank you sir, ill try your solution.

    Windows Auto unlock ONLY works in case you have Bitlocker on your system drive, because if your system drive is not encrypted auto unlocking other drives means loss of security.
    But in my case my system drive is Encrypted with hardware encryption that i password unlock during boot. So auto unlocking Bitlocker drives will do fine for me.
     
    Viruzz, May 26, 2020
    #2
  3. Bitlocker locked on startup

    Hi,

    Thank you for posting your query on Microsoft Community.

    Follow the below steps and check if it helps:

    I suggest you to try the step under the section "To unlock removable data drive" in the following article:

    http://windows.microsoft.com/en-US/windows-8/unlock-bitlocker-protected-drive

    Note: The steps for Windows 8.1 applies to Windows 10 as well.

    For further reference, ask OP to refer to the following article:

    http://windows.microsoft.com/en-us/windows-8/bitlocker-drive-encryption

    I hope this information helps.

    Thank you.
     
    Divya Murugan, May 26, 2020
    #3
  4. Bitlocker lock/unlock batch

    HELP: Automatic BitLocker Unlock.

    more clear
    0down voteaccepted
    I managed to figure out how to fix this. It doesn't use the native auto-unlock function like I was hoping (rather a script that unlocks using a .BEK file, as I mentioned) but it seems to work just as well.

    First, you need to create a .BEK file that can unlock the disk. This is the command I used:

    manage-bde -protectors -add d: -rk c:\

    Substitute d: with whichever drive you want to auto-unlock. The output will look something like this (take note of the "external key file name"):

    BitLocker Drive Encryption: Configuration Tool version 10.0.10011
    Copyright (C) 2013 Microsoft Corporation. All rights reserved.

    Key Protectors Added:

    Saved to directory c:\

    External Key:
    ID: {9DDF4900-5E08-479A-8C4C-6ADE2DA00551}
    External Key File Name:
    9DDF4900-5E08-479A-8C4C-6ADE2DA00551.BEK

    Now you need to create the script to unlock the drive. Just create a batch file in the root directory with the following line:

    manage-bde -unlock d: -rk C:\[external key filename]

    Again, replace d: with the correct drive letter. Replace [external key filename] with the filename you got before.

    Finally, you need to tell Windows to run this script at startup, before you log in. (Or at least I needed it to run then, because that's where my desktop, etc. are stored.) Here's how you do that:

    • Press Win+R and enter gpedit.msc. (This is only in Pro, but so is BitLocker, so that's not an issue here.)

    • On the left, navigate to Computer Configuration > Windows Settings > Scripts (Startup/Shutdown)

    • Double-click "Startup" on the right

    • Click "Add..." and select the batch file you created before.

    • Click OK and exit Group Policy Editor.
    Now you can reboot the computer to test it. You should see your drive automatically unlocked
     
    Rafa anabe, May 26, 2020
    #4
Thema:

Bitlocker lock/unlock batch

Loading...
  1. Bitlocker lock/unlock batch - Similar Threads - Bitlocker lock unlock

  2. How to unlock the laptop when Bitlocked is locked.

    in Windows 10 Gaming
    How to unlock the laptop when Bitlocked is locked.: Dear Team,My laptop is locked with Bitlocker and I cannot have access to it. I have tried everything but to avail. I do not have a Bitlocker key and I have tried to to log into my Microsoft account to retrieve but I am getting the response "There is no bitlocker key stored"....
  3. How to unlock the laptop when Bitlocked is locked.

    in Windows 10 Software and Apps
    How to unlock the laptop when Bitlocked is locked.: Dear Team,My laptop is locked with Bitlocker and I cannot have access to it. I have tried everything but to avail. I do not have a Bitlocker key and I have tried to to log into my Microsoft account to retrieve but I am getting the response "There is no bitlocker key stored"....
  4. How to unlock the laptop when Bitlocked is locked.

    in Windows 10 Installation and Upgrade
    How to unlock the laptop when Bitlocked is locked.: Dear Team,My laptop is locked with Bitlocker and I cannot have access to it. I have tried everything but to avail. I do not have a Bitlocker key and I have tried to to log into my Microsoft account to retrieve but I am getting the response "There is no bitlocker key stored"....
  5. How to unlock bitlocker locked drive?

    in Windows 10 Gaming
    How to unlock bitlocker locked drive?: I suddenly opened my PC and saw that my H drive is locked. I am having trouble to access my account. Please get back to me as soon as possible. https://answers.microsoft.com/en-us/windows/forum/all/how-to-unlock-bitlocker-locked-drive/04bcd4be-7090-4c17-9233-9dc8cc7c4294
  6. How to unlock bitlocker locked drive?

    in Windows 10 Software and Apps
    How to unlock bitlocker locked drive?: I suddenly opened my PC and saw that my H drive is locked. I am having trouble to access my account. Please get back to me as soon as possible. https://answers.microsoft.com/en-us/windows/forum/all/how-to-unlock-bitlocker-locked-drive/04bcd4be-7090-4c17-9233-9dc8cc7c4294
  7. How to unlock bitlocker locked drive?

    in Windows 10 Drivers and Hardware
    How to unlock bitlocker locked drive?: I suddenly opened my PC and saw that my H drive is locked. I am having trouble to access my account. Please get back to me as soon as possible. https://answers.microsoft.com/en-us/windows/forum/all/how-to-unlock-bitlocker-locked-drive/04bcd4be-7090-4c17-9233-9dc8cc7c4294
  8. Unlocking files locked with BitLocker

    in AntiVirus, Firewalls and System Security
    Unlocking files locked with BitLocker: After an update to my Windows 10 Pro edition, I no longer have access to the files in the Documents folder on my C drive. I had previously encrypted these with BitLocker but now it is showing that BitLocker is turned off and logging in to my user account no longer unencrypts...
  9. Bitlock unlock?

    in Windows 10 Support
    Bitlock unlock?: I'm just wondering what this is for on Bitlocker (unlock)? How do you use it? [img] 155432
  10. Locking an Unlocked BitLocker Enabled Drive

    in Windows 10 Drivers and Hardware
    Locking an Unlocked BitLocker Enabled Drive: Hi, I searched for an option to lock an unlocked BitLocker enabled drive but couldn't find anything. The unlocked drive is accessible by the other user when switching the user account. There should be an option to lock the drive when a user has finished. I hereby suggest...

Users found this page by searching for:

  1. enable bitlocker automatically batch file