Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Wrapper to Set-AuthenticodeSignature
function SignScript() {
Param(
[string]$file
)
Set-AuthenticodeSignature -FilePath $file -Certificate `
(Get-ChildItem -Path Cert:\CurrentUser\My -CodeSigningCert)[0] `
-TimestampServer 'http://timestamp.digicert.com'
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment