Category Archives: Windows

Stop or Restart all Windows Services Starting With…

If you have product suites installed – usually this is the case with security products – you may frequently come across a need to disable all of the services at once.  When the service names contain similar strings, Powershell makes it easy to list, stop, restart or delete these services.

For instance, to find all the services from my Sophos suite:

PS C:\WINDOWS\system32> Get-Service -ServiceName *Sophos*


This gives all the services, running or not, containing the case-insensitive string "sophos".

To stop them all,

PS C:\WINDOWS\system32> Get-Service -ServiceName *sophos* | Stop-Service

You may see a few "waiting" messages as the services are stopped, but as long as you have the authority to stop these services you should be returned to a normal Powershell prompt when they have successfully halted.