Get-FileHash only accepts single argument for -Algorithm parameter
Votes from Connect: 3
Original Date Submitted: 7/11/2014 10:53:05 PM
Handle: Trevor Sullivan
Site Name: PowerShell
Feedback ID: 918243
Frequency: Always Happens
Regression: No, this is new to the most recent version
The Get-FileHash command only accepts a single argument for its Algorithm parameter. If you want to retrieve two different hashes, then the command must be called once for each hashing algorithm. Please enable multiple algorithms to be passed into the Get-FileHash command.
Product Studio item created by Connect Synchronizer due to creation of feedback ID 918243 (http://connect.microsoft.com/PowerShell/feedback/ViewFeedback.aspx?FeedbackID=918243).
Run Get-FileHash -Algorithm SHA1,SHA256,SHA512 -Path $env:windir\setupact.log
The Get-FileHash command should return multiple hash results, based on the array of algorithms that are passed into it.
Internal BugId: 8891