Created
July 7, 2015 13:35
-
-
Save macna/59f1dabce07279471f39 to your computer and use it in GitHub Desktop.
PowerShell script for signing a PowerShell script. Requires that you have a certificate in your personal store that is suitable for code signing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$cert = @(gci cert:\currentuser\my | |
-codesigning)[0] | |
Set-AuthenticodeSignature myscript.ps1 $cert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment