PowerTip: Use PowerShell to Get File Hash


Summary: Learn how to use Windows PowerShell to get a file hash.

Hey, Scripting Guy! Question How can I use Windows PowerShell to get a hash of a file?

Hey, Scripting Guy! Answer Use the Get-FileHash cmdlet, for example:

(Get-FileHash C:\fso\myfile.txt).hash

Comments (0)

Skip to main content