title: Get-FileHash unable to read the file
body: <p>I want to use <code>Get-FileHash</code> to populate a set of hash for certain directories. Here is the code : </p>
  
  <pre><code>dir "C:\" -Recurse | Get-FileHash -Algorithm MD5
  </code></pre>
  
  <p>But it show below error : </p>
  
  <blockquote>
    <p>Get-FileHash : The file 'C:\Intel\Logs\IntelCPHS.log' cannot be read:
    The process cannot access the file  'C:\Intel\Logs\IntelCPHS.log'
    because it is being used by another process. At :2 char:22
    + dir "C:\" -Recurse | Get-FileHash -Algorithm MD5| Export-Csv -Path "C ...
    +                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : ReadError: (C:\Intel\Logs\IntelCPHS.log:PSObject) [Write-Error],
    WriteErrorException
        + FullyQualifiedErrorId : FileReadError,Get-FileHash</p>
  </blockquote>
  
  <p>Kindly help on this or is there any other alternative for populating hashes?</p>