How can I check if a powershell script is signed from the managed API?
Posted
by James Berry
on Stack Overflow
See other posts from Stack Overflow
or by James Berry
Published on 2010-04-30T16:45:15Z
Indexed on
2010/04/30
16:47 UTC
Read the original article
Hit count: 234
powershell
I want to execute a powershell using the .net Powershell SDK. I have this working fine. Before I execute it I want to check that the script has been signed by my code signing certificate - this is easy enough to do from within powershell itself using Get-AuthenticodeSignature but I would like to do this in code before choosing to execute this script.
© Stack Overflow or respective owner