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?
Sign Multiple PowerShell Scripts
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.
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.
- Alexander Riedel
- Posts: 7561
- Joined: Tue May 29, 2007 4:43 pm
- Been upvoted: 5 times
Re: Sign Multiple PowerShell Scripts
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.
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.
SAPIEN Technologies, Inc.
Re: Sign Multiple PowerShell Scripts
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!
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!