Page 1 of 1

Sign Multiple PowerShell Scripts

Posted: Wed Jan 06, 2021 8:45 am
by tld212s
Product, version and build: PowerShell Studio 5.7.182
Operating system: Windows 10
PowerShell version(s): 5.1, 7


Has anybody found a way to mass-sign PowerShell scripts? We have a bunch of scripts that were signed with a certificate that has now been replaced. I didn't know if there was a way to sign them all without opening each individual script?

Re: Sign Multiple PowerShell Scripts

Posted: Wed Jan 06, 2021 9:20 am
by Alexander Riedel
Use a powershell script? https://docs.microsoft.com/en-us/powers ... rshell-7.1

Generally, that is why signatures are time stamped, or should be. A signature has an expiration date. If the time stamp is included, the signature remains valid after expiration of the certificate.
It basically proves that the certificate was valid at the time of signing.
I don't know what happened to your certificate, but if it just expired and you used a time stamp, there is nothing you should need to do until you modify any of these scripts.

Re: Sign Multiple PowerShell Scripts

Posted: Wed Jan 06, 2021 1:09 pm
by tld212s
Ahh ok I see now.
Nothing happened to the signing certificate. I was more curious what would happen to all the scripts I signed with it once it expires and I have to renew it. Since I'm including a timestamp when I sign them via PowerShell Studio, it appears they will still execute. Thanks!