Created
March 25, 2019 20:25
-
-
Save IISResetMe/4c4ff5d3f3096d1a60d8cf4ba9744125 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
& autorunsc.exe * -c -nobanner |ConvertFrom-Csv |Select *,@{Label='HasTimestampedSignature';Expression={ | |
[bool]$(if($_.'Image Path' -and $_.'Image Path' -notlike 'File not found:*'){ | |
$sig = Get-AuthenticodeSignature $_.'Image Path' | |
$sig.Status -eq 'Valid' -and $sig.TimeStamperCertificate | |
}) | |
}} |Export-Csv -Path output.csv -NoTypeInformation |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment