Bird
0
0

You run this command to stop the 'Spooler' service:

medium📝 Debug Q14 of 15
PowerShell - System Administration
You run this command to stop the 'Spooler' service:
Stop-Service Spooler

But it fails with an error. What is the likely cause?
AYou need to specify the parameter name: <code>-Name</code> before the service name.
BThe service is already stopped, so Stop-Service cannot run.
CStop-Service cannot stop the Spooler service.
DYou must run PowerShell as Administrator to stop services.
Step-by-Step Solution
Solution:
  1. Step 1: Check command syntax

    Stop-Service Spooler is valid because the parameter -Name is positional and can be omitted.
  2. Step 2: Consider permissions

    Stopping services usually requires administrator rights. Without running PowerShell as admin, the command fails with an error.
  3. Final Answer:

    You must run PowerShell as Administrator to stop services. -> Option D
  4. Quick Check:

    Stopping services needs admin rights [OK]
Quick Trick: Run PowerShell as admin to stop services [OK]
Common Mistakes:
  • Thinking -Name parameter is mandatory
  • Assuming service must be running to stop
  • Believing Spooler service cannot be stopped

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More PowerShell Quizzes