title: MD5-Checksum hashing with powershell for a whole directory
body: <p>I'm trying to generate an MD5-Checksum with powershell for a whole directory.
  On Linux there is a 1-liner that works just great, like this one:</p>
  <p>$ tar -cf - somedir | md5sum</p>
  <p>I learned that &quot;tar&quot; is now part of Windows10 and that it can be adressed in the PowerShell.
  So I tried this:</p>
  <p>tar -cf - C:\data | Get-FileHash -Algorithm MD5</p>
  <p>What I get from PowerShell is this:</p>
  <hr />
  <p>tar.exe: Removing leading drive letter from member names<br />
  Get-FileHash : the input object cannot be bound to any parameters of the command because the command does not accept pipeline input or the input and its properties do not match any of the parameters that accept pipeline Input</p>
  <hr />
  <p>My Shell is set to german, so I ran the german error text through a Translation machine (<a href="https://www.translator.eu/#" rel="nofollow noreferrer">https://www.translator.eu/#</a>).</p>
  <p>I wondered why I get this particular error message, because Get-FileHash IS able to process pipelined Input, e.g.:</p>
  <p>ls | Get-FileHash -Algorithm MD5</p>
  <p>This command just works like a charm, but it gives me checksums for each and every file.
  What I want is 1 checksum for a complete given directory.</p>
  <p>So, I probably messed up something… - any ideas?</p>