Bird
0
0

What will be the output type when you run Get-Process | Get-Member -MemberType Property?

medium📝 Command Output Q13 of 15
PowerShell - Cmdlets and Pipeline
What will be the output type when you run Get-Process | Get-Member -MemberType Property?
AList of properties of process objects
BList of all processes running
CList of methods of process objects
DError message about invalid syntax
Step-by-Step Solution
Solution:
  1. Step 1: Understand the -MemberType Property filter

    This filter limits output to only properties of the object, excluding methods.
  2. Step 2: Apply filter to Get-Process output

    The command lists only properties (like Id, ProcessName) of each process object.
  3. Final Answer:

    List of properties of process objects -> Option A
  4. Quick Check:

    MemberType Property = Properties listed [OK]
Quick Trick: Use -MemberType Property to see only properties [OK]
Common Mistakes:
  • Confusing properties with methods
  • Expecting process list instead of members
  • Assuming syntax error due to filter

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes