In case you don’t get the SAPIEN Newsletter, here’s my PowerShell one-liner for the month that uses Get-Command to find scripts in your path.
Tag: AuthenticodeSignature
Sign PowerShell Scripts
If you’ve been to any of my PowerShell sessions or classes you know I often recommend using an AllSigned execution policy for your production servers. Assuming you’ve gone ahead and installed a code signing certificate on your desktop, how do you go about signing all your scripts. Here’s how you might sign all your scripts in a given directory.