title: Programmatically prepare drive for BitLocker
body: <p>How can I programmatically prepare a drive for BitLocker.</p>
  <p>I get VMs with OS and System volumes in the same volume and would like to enable BitLocker. Like this:</p>
  <p><a href="https://i.stack.imgur.com/UnCEY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UnCEY.png" alt="Single OS and System Volume" /></a></p>
  <p>The BitLocker Wizard will prepare the drive like so:
  <a href="https://i.stack.imgur.com/4DorQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4DorQ.png" alt="BitLocker Drive Preparation Wizard" /></a></p>
  <p>The outcome will look like this:
  <a href="https://i.stack.imgur.com/5ZVYl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5ZVYl.png" alt="Separate OS and System Volumes" /></a></p>
  <p>I'd like to be able to do this in PowerShell or really any scripted way.</p>
  <p>I've tried using the New-Partition cmdlet, but that doesn't work.</p>