Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (12 sloc) 355 Bytes
foreach ($proc in get-process)
{
try
{
Get-FileHash $proc.path -Algorithm SHA1 -ErrorAction stop
}
catch
{
#error handling... log contains names of processes where there was no path listed or we lack the rights
$proc.name | out-file c:\proc_hash_error.log -Append
}
}