Командная строка:
manage-bde -protectors -disable <drive letter>:
manage-bde -protectors -enable <drive letter>:
Powershell (WMI)
$bitlocker = Get-WmiObject -Namespace root\cimv2\Security\MicrosoftVolumeEncryption -Class Win32_EncryptableVolume
$bitlocker.DisableKeyProtectors()
$bitlocker.EnableKeyProtectors()
C #
using System.Management // add reference
// ...
// disable Bitlocker
ManagementObject classInstance = new ManagementObject(@"root\cimv2\Security\MicrosoftVolumeEncryption", "Win32_EncryptableVolume.DriveLetter='C:'", null);
ManagementBaseObject outParams = classInstance.InvokeMethod("DisableKeyProtectors", null, null);
// enable Bitlocker
outParams = classInstance.InvokeMethod("EnableKeyProtectors", null, null);