Get-AuthenticodeSignature
Jump to navigation
Jump to search
Takes certificate from signed executable
NotSigned | The file "xyz" is not digitally signed. The script will not execute on the system. Please see "get-help about_signing" for more details. | Since the file has no digital signature, you must use Set-AuthenticodeSignature to sign the file. |
UnknownError | The file "xyz" cannot be loaded. A certificate chain processed, but ended in a root certificate which is not trusted by the trust provider. | The used certificate is unknown. Add the certificate publisher to the trusted root certificates authorities store. |
HashMismatch | File XXX check this cannot be loaded. The contents of file "…" may have been tampered because the hash of the file does not match the hash stored in the digital signature. The script will not execute on the system. Please see "get-help about_signing" for more details. | The file contents were changed. If you changed the contents yourself, resign the file. |
Valid | Signature was validated. | The file contents match the signature and the signature is valid. |
#running process
(get-process svchost | select-object path).path | Get-AuthenticodeSignature
#file
get-AuthenticodeSignature '.\executable.exe'