-
-
Save dlwyatt/40f46051e3e68f859f73 to your computer and use it in GitHub Desktop.
Signing example
This file contains 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 = Get-Item Cert:\CurrentUser\My\20164DCA86BDFBB5B345AF85F5DB54E9AFFA3F30 | |
Set-AuthenticodeSignature -FilePath C:\Scripts\SomeScript.ps1 ` | |
-Certificate $cert ` | |
-TimestampServer http://timestamp.digicert.com ` | |
-IncludeChain All ` | |
-HashAlgorithm SHA256 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment