I am absolute beginner in coding, My question is how can i retrieve complete details of Digital Certificate of files containing in multiple sub folders(export to csv). With little help from google, i found below powershell code which suffice this for a single file.
get-childitem C:\Windows\notepad.exe | Get-AuthenticodeSignature |Format-List
I am having 300+ files (exe/DLLS) in multiple sub folders. What i what
- Fetch the details for all the files including files in sub folders.
- Export the details to csv. attached image file
- Column headers > SignerCertificate:Subject,SignerCertificate: Issuer,SignerCertificate: Serial Number,SignerCertificate: Not Before,SignerCertificate: Not After,SignerCertificate:Thumbprint,TimeStamperCertificate:Subject,TimeStamperCertificate: Issuer,TimeStamperCertificate: Serial Number,TimeStamperCertificate: Not Before,TimeStamperCertificate: Not After,TimeStamperCertificate:Thumbprint,Status,StatusMessage,Path