Friday, August 3, 2012

Signing PowerShell Scripts

As part of my series on how to automate publishing Metastorm maps we will now talk about signing the PowerShell script.

Hey, I don't know about you but security where I work keeps us on a tight leash. We can't just run anything in production. At the very least we should be digitally signing our files.

Now, I could sit here and write a book on how to digitally sign your PowerShell scripts but what do I get out of it? How about I just point you in the right direction?

'Signing PowerShell Scripts' will get you 90% of the way there. The issue I ran into was that my script was encoded incorrectly. (Damn you, Notepad!) 'UnknownError when using Powershell ISE to Set-AuthenticodeSignature' should get you the rest of the way.