Bird
0
0

What will be the output of this command?

medium📝 Command Output Q4 of 15
PowerShell - System Administration
What will be the output of this command?
Get-Service -Name 'wuauserv' | Select-Object -Property Status
AStops the Windows Update service
BDisplays the status of the Windows Update service
CStarts the Windows Update service
DReturns an error because Select-Object is invalid here
Step-by-Step Solution
Solution:
  1. Step 1: Understand Get-Service output

    Get-Service -Name 'wuauserv' gets the Windows Update service object.
  2. Step 2: Use Select-Object to show Status

    Select-Object -Property Status extracts and displays only the Status property.
  3. Final Answer:

    Displays the status of the Windows Update service -> Option B
  4. Quick Check:

    Select-Object shows specified properties = C [OK]
Quick Trick: Select-Object extracts specific properties from objects [OK]
Common Mistakes:
  • Thinking it starts or stops the service
  • Believing Select-Object causes an error
  • Confusing service object with process object

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes