title: c# Lock Bitlocker Encrypted Drive
body: <p>I Have the following C# code to lock a particular drive using Bitlocker. I am using the Windows Command Prompt command : <code>manage-bde -lock G:</code>(the drive I want to lock). However, my drive still remains unlocked at the end of Program.
  My Code:</p>
  
  <pre><code>        ProcessStartInfo startInfo = new ProcessStartInfo();
          startInfo.WorkingDirectory = @"C:\Windows\System32";
          startInfo.FileName = @"C:\Windows\System32\cmd.exe";
          startInfo.Arguments = "/C manage-bde -lock G:";
          startInfo.Verb = "runasuser";
          Process.Start(startInfo);
  </code></pre>