February 2019
Intermediate to advanced
626 pages
15h 51m
English
The Get-Member command is used to view the different members of an object. For example, it can be used to list all of the members of a process object (returned by Get-Process):
Get-Process -Id $PID | Get-Member
Get-Member offers filters using its parameters (MemberType, Static, and View). For example, if we wished to view only the properties of the PowerShell process, we might run the following:
Get-Process -Id $PID | Get-Member -MemberType Property
The Static parameter will be covered in Chapter 7, Working with .NET.
The View parameter is set to all by default. It has three additional values:
Read now
Unlock full access