Type System and Type Adaptation
PowerShell uses a type-adaptation system that masks all the details of these different objects’ representations. A PowerShell script never directly accesses an object. It always goes through the type-adaptation layer—the PSObject (PowerShell Object) layer—that rationalizes the interfaces presented to the user. The PSObject layer allows for a uniquely consistent user experience when working with the different types of objects.
The basic set of object adapters available in PowerShell
Adapted object type | Description |
.NET Adapter | This is the basic adapter for all .NET types. This adapter directly |
COM Object Adapter | This adapter provides access to COM objects. Supported |
WMI Adapter | This adapts objects returned from a WMI provider. |
ADO Adapter | This adapter allows you to treat the columns in ADO data |
Custom Object Adapter | This adapter manages objects for which there’s no actual |
ADSI Object Adapter | This adapts objects returned from the Active Directory Service |