Bird
0
0

Which PowerShell command lists all services currently running on the system?

easy📝 Conceptual Q1 of 15
PowerShell - System Administration
Which PowerShell command lists all services currently running on the system?
AStart-Service -Name Running
BStop-Service -Name Running
CGet-Service | Where-Object {$_.Status -eq 'Running'}
DGet-Process | Where-Object {$_.Status -eq 'Running'}
Step-by-Step Solution
Solution:
  1. Step 1: Understand the command to list services

    The Get-Service cmdlet retrieves all services on the system.
  2. Step 2: Filter services by status

    Using Where-Object {$_.Status -eq 'Running'} filters only running services.
  3. Final Answer:

    Get-Service | Where-Object {$_.Status -eq 'Running'} -> Option C
  4. Quick Check:

    List running services = B [OK]
Quick Trick: Use Where-Object to filter services by status [OK]
Common Mistakes:
  • Confusing Get-Service with Get-Process
  • Using Start-Service or Stop-Service to list services
  • Filtering on wrong property like Name instead of Status

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes