I can’t sign the script, the UnknownError error is popping up all the time. Changing the script file encoding does not help.
I sign the script with the following command:
Set-AuthenticodeSignature "d:\dist1.ps1" @(Get-ChildItem cert:\CurrentUser\Krox -codesigning)[0] The error is returned in the following form:
SignerCertificate Status Path ----------------- ------ ---- UnknownError dist1.ps1