title: Automate the process of How to backup Bitlocker recovery information in AD
body: <p>I am trying to automate this process.  By running the command below, I get the information I am looking for.  The numerical password ID which is ID: {DFB478E6-8B3F-4DCA-9576-C1905B49C71E} </p>
  
  <blockquote>
    <p>manage-bde -protectors -get c: </p>
  </blockquote>
  
  <p>I need to then take this value {DFB478E6-8B3F-4DCA-9576-C1905B49C71E} and place it in the same command with a different syntax.</p>
  
  <pre><code>manage-bde -protectors -adbackup c: -id {DFB478E6-8B3F-4DCA-9576-C1905B49C71E} 
  </code></pre>
  
  <p>The problem is I need to strip it out of the info presented by the program at the command prompt.</p>
  
  <p>I need to script this so I can import this in to a MDT 2013 task sequence.  Any direction would be appreciated.</p>
  
  <p>This will be run on the local machine while I am imaging it.  The full output is below.</p>
  
  <pre><code>manage-bde -protectors -get c:
  
  Example:
  
  Bitlocker Drive Encryption: Configuration Tool version 6.1.7600
  Copyright (C) Microsoft Corporation. All rights reserved.
  Volume C: Old Win7
  All Key Protectors
  External Key:
    ID: {F12ADB2E-22D5-4420-980C-851407E9EB30}
    External Key File Name:
      F12ADB2E-22D5-4420-980C-851407E9EB30.BEK
  
  Numerical Password:
    ID: {DFB478E6-8B3F-4DCA-9576-C1905B49C71E}
    Password:
      224631-534171-438834-445973-130867-430507-680922-709896
  
  TPM And PIN:
    ID: {EBAFC4D6-D044-4AFB-84E3-26E435067AA5} 
  </code></pre>