Commands / System

Stop-Service

Stop a Windows service

intermediate System Aliases spsv

Stop-Service
 Stop-Service -Name Spooler -WhatIf
Works on
Windows
PowerShell
5.1 and later
Permissions
Run as administrator
Reference
Microsoft Learn: Stop-Service

Careful: Stopping a service other processes depend on will hurt. Use -WhatIf.

-Force also stops dependents. That is a sharp edge. Look at dependents first: Get-Service -Name Spooler | Select-Object -ExpandProperty DependentServices.

Try this

Stop-Service -Name Spooler -WhatIf

Coming from another shell

ShellWhat you might type
bash / zshsudo systemctl stop nginx
cmd.exenet stop Spooler

More in From bash and From cmd.

Related commands