Chapter 10. Signing Scripts

Imagine that one of your duties at work involves performing a tedious manual task every day. One evening, just before you leave work, you get an e-mail from a coworker that reads, "Hey, I created this nice PowerShell script that you can run, and it will automatically do the XYZ task for you."

You are thrilled! You extract the attachment and immediately run the script. Unfortunately, it just spews out an incomprehensible error message and stops. You sigh, send a quick "Your script does not work" message to your coworker and go home.

The next morning, you notice your computer is acting very strange. You dig deeper and find a key logger installed on your machine capturing passwords and sending them who knows where. Adding ...

Get Pro Windows PowerShell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.