I get no hash files using Get-FileHash.

523311 40 Reputation points
2023-08-27T23:20:23.6266667+00:00

I wanted to get file hash in folder mounted to nas, but, I think it works, nothing error happened, but no output generated.

PS C:\windows\system32> Get-FileHash -Algorithm SHA512 -Path "\\mynas\something\folder\file.abc"
Windows for business Windows Server User experience PowerShell
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-08-28T05:15:16.7366667+00:00

    Hi 523311,

    Is "\mynas\something\folder\file.abc" a directory path? Per my test, the cmdlet returns nothing when the path is a directory. You have to provide a file path to the "-Path" parameter.

    Best Regards,

    Ian Xue


    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.