From the course: Complete Guide to PowerShell 7
Unlock this course with a free trial
Join today to access over 24,800 courses taught by industry experts.
Inspect objects with Get-Member - PowerShell Tutorial
From the course: Complete Guide to PowerShell 7
Inspect objects with Get-Member
- [Instructor] Get-Member is one of the most powerful tools for working with objects in PowerShell. It allows you to explore the structure of any object revealing its properties, methods, and even events. For instance, when dealing with output from a commandlet like Get-Process, using Get-Member shows all of the attributes and actions associated with each process object. This is particularly useful when working with unfamiliar Commandments or data types as it gives you a comprehensive understanding of what the object can do and how you can interact with it in the scripts. What are the key outputs of Get-Member? Well, first it will be the properties which provide data about the specific object itself. Then of course the methods which define the actions that the object can perform. Then the types which indicate the object's class or type. And then of course any events which are triggers that relate to the object itself. One, working with new commandlets or APIs, Get-Member becomes your…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
(Locked)
Understanding PowerShell objects5m 6s
-
(Locked)
Inspect objects with Get-Member10m 55s
-
(Locked)
Select object properties5m 51s
-
(Locked)
Sorting objects3m 45s
-
(Locked)
Filtering objects4m 33s
-
(Locked)
Creating custom objects8m 27s
-
(Locked)
Extending objects with methods10m 26s
-
(Locked)
Converting objects to different formats9m 17s
-
(Locked)
-
-
-
-
-
-
-
-