Introduction
Get-Member helps you see what properties and methods an object has. It is like looking inside a box to know what tools you can use.
Get-Member [-InputObject <PSObject>] [-MemberType <string[]>] [-Name <string[]>] [<CommonParameters>]
Get-Process | Get-Member
'Hello World' | Get-Member -MemberType PropertyGet-Service | Get-Member -Name Status
Get-Process | Select-Object -First 1 | Get-MemberGet-Member cmdlet in PowerShell?Get-Member doesGet-Member shows the properties and methods available on an object, helping you explore it.Get-Member purposeGet-Member to inspect the properties of the output from Get-Process?| sends output from one command as input to another.Get-Process and Get-MemberGet-Process | Get-Member to inspect process objects.Get-Process | Get-Member -MemberType Property?-MemberType Property filterGet-Process outputGet-Process | Get-Member -MemberType ScriptMethod but get no output. What is the most likely reason?-MemberType parameter valueGet-Process have methods, so The objects returned by Get-Process have no methods is false.Get-Member to filter these properties?Get-Member does not support a -Name or -Filter parameter for partial matches, so filtering must be done after.Where-Object to filter properties by nameGet-Member output to Where-Object with a script block filtering names starting with 'Status'.Pass the test and this pattern moves unknown