Chapter 7. Scripts and security

If you’ve been in IT for a while, you may recall the days of rampant macro-based malware that took advantage of the scripting elements in Microsoft Office. When PowerShell was first mentioned, many people were concerned about the potential for abuse. Microsoft was cognizant of this fear and took steps to mitigate potential problems. After all, a malicious PowerShell script can do a lot of damage with a minimal amount of code. PowerShell scripting by itself isn’t a bad thing, so they didn’t want to make it completely unavailable. Instead, Microsoft tried to strike a balance.

But—and we can’t stress this strongly enough—PowerShell’s security features are intended to be part of a defense in depth program, where ...

Get Learn PowerShell Scripting in a Month of Lunches 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.