14.5. Summary

Windows PowerShell is based on .NET objects. You can create new .NET objects using the following techniques:

  • Using the new-object cmdlet

  • Implicitly using a cmdlet or pipeline

  • By explicitly casting a value to another compatible type

The get-member cmdlet allows you to explore the members of .NET instance objects, such as variables you use in your PowerShell commands.

You can also explore the members of .NET classes by using the GetMembers(), GetMember(), GetMethods(), GetMethod(), GetProperties(), and GetProperty() methods.

Get Professional Windows® PowerShell 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.