swisscom / PowerSponse

PowerSponse is a PowerShell module focused on targeted containment and remediation during incident response.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Return file hash in find-file command

Karneades opened this issue · 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