Chapter 25. Wrapping up the .NET Framework

As you start exploring the edges of what PowerShell can do, you’ll run across instances where there’s no command built that will do what you need done. In many instances, you may discover something lurking in the massive .NET Framework that can do what you need (or perhaps it’s an external command, an old COM object, or something else). Is it okay to use that raw .NET stuff in your scripts?

Well, no. But also, yes.

25.1. Why does PowerShell exist?

Let’s go back to the base reason PowerShell exists. Microsoft Windows, as an operating system, is and always has been chock-full of things to help make automation possible. It’s an operating system, after all, running on a computer, and computers are all ...

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.