Working with .NET

PowerShell is written in and built on the .NET Framework. Much of the .NET Framework can be used directly, and doing so adds a tremendous amount of flexibility; it removes many of the borders the language might otherwise have.

The idea of working with objects was introduced in Chapter 4, Working with Objects in Powershell, and this chapter extends on that, moving from objects created by commands to objects created from .NET classes. Many of the chapters which follow make extensive use of .NET, simply because it is the foundation of PowerShell.

It is important to understand that the .NET Framework is vast; it is not possible to cover everything about the .NET Framework in a single chapter. This chapter aims to show how the ...

Get Mastering Windows PowerShell Scripting - Second Edition 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.