Ying Li at myITforum.com

PowerShell & System Center

The basic set of object adapters avaliable in PowerShell

As we all know PowerShell is object oriented. It has objects and object types, programming is all about working with different types of objects. For each kind (type) data (object) that PowerShell works with, there is a corresponding adapter.

Here is the basic set of object adapters available in PowerShell

.NET Adapter – This is the basic adapter for all .NET types. This adapter directly maps the properties on the .NET object and adds several new ones that start with a PS prefix.

COM Object Adapter – This adapter provides access to COM objects. Supported objects include the Windows Script Host classes and scriptable applications such as Microsoft Excel or Internet Explorer.

WMI Adapter – This adapts objects returned from a WMI provider.

ADO Adapter – This adapter allows you to treat the columns in ADO data tables as though they were properties

Custom Object Adapter – This adapter manage objects for which there is no actual underlying object, only synthetic properties.

ADSI Object Adapter – This adapts objects returned from the ADSI.

Posted: Jun 11 2007, 12:16 PM by yli628 | with no comments
Filed under:

Comments

No Comments