Chapter 22. Crossing the line: utilizing the .NET Framework

Until now, we’ve focused on keeping you entirely within PowerShell. Everything we’ve shown you to this point has utilized native PowerShell commands, techniques, and capabilities. The sole exception was our brief dip into databases, which required us to utilize the underlying .NET Framework. In that case, we still tried to hide the Framework a bit by providing you with PowerShell-style functions to use for database access. We’ve taken this approach because we truly believe that PowerShell is at its easiest and most consistent when you use it in the way we’ve been doing.

In this chapter, we’re going to cross the line and use the Framework more directly. This isn’t an approach that we ...

Get Learn PowerShell Toolmaking 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.