What you would do if you had to remove authenticode signatures from multiple PowerShell scripts?

It’s trivial to remove an authenticode signature manually.

Open the file. Cut off the signature portion at the bottom. Save the file.

Boom! Script sans signature. Easy peasy.

But what if you have to remove signatures from hundreds of PowerShell scripts? I’m sure given your PowerShell prowess you’re probably thinking, “I use Set-AuthenticodeSignature for signing. Maybe there’s a Remove-AuthenticodeSignature cmdlet?” Although I like the way you’re thinking, I’m sorry to say there is no such cmdlet out of the box.

But fret not! You can always use the Remove-Signature function shown below.