swisscom/PowerSponse

Return file hash in find-file command

Karneades opened this issue · 1 comments

Return the file hash for each found file in find-file command.

Approach: Use Get-FileHash directly on remote host for each file.

Hash is included for files as well in find-file using get-filehash on the remote host.

Example

PS> Find-File -Path ~/* | select -ExpandProperty reason | ft
C:\Users\user\file1     05.02.2019 16:39:16 05.03.2019 18:39:16    1144 18432CC1FE2C6ABFEEF9056AF6E542FE
C:\Users\user\file2     15.01.2018 10:39:33 25.01.2019 15:59:54   12221 9C38FAC15B06C8A81E478321ABEFFEE2