0

I'm stuck on a problem with BitLocker.

Essentially, I'm trying to develop a tool in C# that automatically encrypts external drives with a customized password and saves the recovery key (file) into a directory chosen by me.

I found some commands to be executed via cmd, but unfortunately I'm only able to save the recovery key file without using a customized password.

Just to be more clear this is what I mean. I'd like to set a custom password as I'm writing here:

Set Custom Password

After I'd like to save the recovery file into a custom directory:

Save Recovery File into Custom Directory

Is that possible? After reading a lot of references on Microsoft, I haven't found anything useful.

henrycarteruk
  • 12,708
  • 2
  • 36
  • 40

1 Answers1

0

You can use WMI in C# or PowerShell to configure Bitlocker. There are also a bunch of Bitlocker cmdlets available in Windows 8.1 and above. You might want to look at this article for a deep dive on PowerShell and Bitlocker.

Andy Schneider
  • 8,516
  • 6
  • 36
  • 52