For the next three Wednesdays, we will be teaming up with Manning Publishing to take a deep dive into PowerShell. These lessons are advanced. Because I do not come from a scripting background, I found them very useful! If you don’t come from a scripting background and want to learn more about PowerShell, take a look at these two books that explain PowerShell in English! Pretty much any script you see on this site uses techniques and logic from both of those books.
In this series, we will be covering the extremely helpful technique of extending PowerShell through the use of .NET code. These excerpts come from the new book, PowerShell Deep Dives by Jeffery Hicks, Richard Siddaway, Oisín Grehan, and Aleksandar Nikolić. Stay with me through this series – while you won’t get a case of the bends, you will learn some great new PowerShell tricks!
This section was written by Richard Siddaway:
PowerShell is .NET-based. This enables you to use the .NET framework in your PowerShell scripts by loading the relevant assemblies into PowerShell (if they aren’t part of the default assembly set) and then using them via New-Object. You can create intricate GUI applications as a front end to your scripts, for instance. You can also use .NET code directly in your scripts.