Summary

  • This article discusses managing Windows services via the command line rather than using the graphical Services Manager.
  • The author describes three methods: using the sc.exe command-line tool, the net command, and PowerShell cmdlets.
  • With sc.exe, you can check a service’s status, start a service, stop a service, create a new service, update a service, and delete a service.
  • The net command lets you start and stop services, as well as pause and resume services, and check service status (in conjunction with the findstr command).
  • PowerShell provides advanced control, with full status details, the ability to start and stop services, and the option to restart services.
  • PowerShell also allows for scripting, enabling services to be managed automatically.
  • For example, a script could continuously check the status of a specific service and restart it if it stops unexpectedly.

By Anees Asghar

Original Article