Sign Multiple PowerShell Scripts

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
User avatar
tld212s
Posts: 2
Joined: Wed Oct 21, 2015 3:11 pm

Sign Multiple PowerShell Scripts

Post 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?

User avatar
Alexander Riedel
Posts: 7561
Joined: Tue May 29, 2007 4:43 pm
Answers: 2
Been upvoted: 5 times

Re: Sign Multiple PowerShell Scripts

Post 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.
Alexander Riedel
SAPIEN Technologies, Inc.

User avatar
tld212s
Posts: 2
Joined: Wed Oct 21, 2015 3:11 pm

Re: Sign Multiple PowerShell Scripts

Post 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!