title: REG SAVE HKLM\SOFTWARE give me different file size when running from ProcessStartInfo
body: <p>I'm trying to save the Hive Registry File called <code>HKLM\SOFTWARE</code> from a C# application.</p>
  
  <p>When I run the the following command (from CMD) <code>REG SAVE HKLM\SOFTWARE C:\TEST</code> it give me a file with a size of about 90MB.</p>
  
  <p>So, I expected that by running this command through the Process and ProcessStartInfo class in a C# Console Application, it would give me the same result. <strong>NO</strong>.
  It produces a file of about 8MB, obviously with less data!</p>
  
  <p>Here is the C# code:</p>
  
  <pre><code>ProcessStartInfo start = new ProcessStartInfo("REG", "SAVE HKLM\SOFTWARE C:\TEST")
  {
      UseShellExecute = false,
      RedirectStandardOutput = false,
      RedirectStandardError = false,
      CreateNoWindow = true,
  };
  
  Process.Start(start).WaitForExit();
  </code></pre>
  
  <p>Why it gives me a smaller file?
  How can I solve this?</p>
  
  <p>Thanks in advance!</p>