Bird
0
0

You want to list all properties of a PowerShell object $user. Which command correctly shows this?

hard📝 Application Q8 of 15
PowerShell - Working with Objects
You want to list all properties of a PowerShell object $user. Which command correctly shows this?
A$user | Get-Member -MemberType Properties
BGet-Properties $user
C$user.Properties()
DShow-ObjectProperties $user
Step-by-Step Solution
Solution:
  1. Step 1: Recall how to inspect object members

    Get-Member cmdlet lists properties and methods of objects.
  2. Step 2: Filter for properties only

    Using -MemberType Properties shows only properties of $user.
  3. Final Answer:

    $user | Get-Member -MemberType Properties -> Option A
  4. Quick Check:

    Get-Member for properties = A [OK]
Quick Trick: Use Get-Member to explore object properties and methods [OK]
Common Mistakes:
  • Using non-existent cmdlets
  • Trying to call properties as methods
  • Not using pipeline with Get-Member

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes