title: Any way to programatically get a value/setting from Bcedit.exe, using .NET?
body: <p>When running bcdedit.exe from an elevated command prompt, you can see the values of the current BCD settings. I need to read the setting/value of "<strong>hypervisorlaunchtype</strong>"</p>
  
  <p><img src="https://i.stack.imgur.com/7ig6Z.png" alt="Screenshot"></p>
  
  <p>Does anyone know a way to do this?</p>
  
  <p>I've tried to write the piped output to a tmp file so that I could parse it, but ran into piped output issues due to the fact that bcdedit.exe needs to be run from an elevated prompt. Maybe there's a better way?</p>
  
  <p><strong>Edit:</strong> I forgot to add that I'd like to be able to do this without the end user seeing the Command Prompt at all (i.e. not even a quick flash) is possible.</p>