# Script to disable BitLocker on Windows

BitLocker is a security feature built-in into the Windows operating system to enforce encryption on system drives, fixed data drives, and removable drives for data protection. If you no longer need BitLocker encryption for the drives, you can easily disable it via the Control Panel, Windows PowerShell, Command Prompt or other third-party apps.

Using Hexnode’s [scripting feature](https://www.hexnode.com/mobile-device-management/help/executing-custom-scripts-for-windows/), you can execute the Batch/PowerShell scripts provided below to remotely disable BitLocker encryption for a drive on your Windows devices.

 Note:You must first unlock the BitLocker encrypted drive before you can disable BitLocker encryption using these scripts.

 

 Disclaimer:The Sample Scripts provided below are adapted from third-party Open-Source sites.

 

Batch Script to Disable BitLocker
---------------------------------

Disable BitLocker

manage-bde -off X: 

   1

  manage-bde -off X: 

   

 

  

Replace ‘X’ with the actual drive letter of the encrypted volume. For example, the following command will disable BitLocker encryption for drive ‘C’:

`manage-bde -off C: `

The BitLocker decryption process will begin soon after you successfully execute this batch script. You can check the BitLocker status by running the command below:

Check BitLocker status

manage-bde -status 

   1

  manage-bde -status 

   

 

  

If the ‘Percentage Encrypted’ is displayed as 0.0%, the decryption process has been completed.

PowerShell Scripts to Disable BitLocker
---------------------------------------

### Disable BitLocker for a drive

Check BitLocker status

PS C:\\> Disable-BitLocker -MountPoint "X:" 

   1

  PS C:\\> Disable-BitLocker -MountPoint "X:" 

   

 

  

Replace ‘X’ with the actual drive letter for which you need to disable BitLocker encryption.

### Disable BitLocker for all drives 

Check BitLocker status

PS C:\\>$BLV = Get-BitLockerVolume PS C:\\>Disable-BitLocker -MountPoint $BLV 

   1

2

  PS C:\\>$BLV = Get-BitLockerVolume 

PS C:\\>Disable-BitLocker -MountPoint $BLV 

   

 

  

This PowerShell script will disable BitLocker encryption for all the encrypted drives on the Windows device.

 Notes:- It is recommended to manually validate the script execution on a system before executing the action in bulk.
- Hexnode will not be responsible for any damage/loss to the system on the behavior of the script.