title: Bitlocker script to unlock drive
body: <p>What I am trying to achieve is to create a very small script to unlock my bitlocker drive, using the password, not the recovery password.</p>
  
  <p>There is a Microsoft command for that, which is:</p>
  
  <pre><code>manage-bde -unlock D: -password
  </code></pre>
  
  <p>where <code>D</code> is my bit locker drive. If I run this command line it will ask me for the password, and then the drive is properly unlocked.</p>
  
  <p>At first I thought about creating a variable to ask for the password to the user, and then use this variable in the above command line, so that the script would look like:</p>
  
  <pre><code>set /p pass= what is your pass
  manage-bde -unlock D: -password %pass%
  </code></pre>
  
  <p>The problem is that <code>-password</code> does not seem to accept any argument, would it be the variable, or the password in clear, it will fail.
  So, the only way to make it work seems to be an automatic reply to the prompt for the password, with the data in the variable.
  But I don't know how to do that. I assume there is an extra command line to add after the <code>manage-dbe</code>...</p>
  
  <p>My programming skills are quite weak, so any help would be appreciated.</p>