This is the second article for Windows Services. You can access previous article Windows Services Basics here.
Managing Windows services from command line
Net Command
You can use NET START and NET STOP command to start and stop Windows service.
Using Net command to start a Windows Service
NET START < ServiceName >
Using Net command to stop a Windows Service
NET STOP < Service Name >
SC (Service Control) Command
SC.exe is a powerful command line tool to manage Windows Services. This can be used to Query, Start,Stop,Create or Delete a Windows service. This tool can manage the services on remote computer as well. In this article, we are going to explore Query , start and stop options only.
Query Service status of specific service on Local machine
SC QUERY < Service Name >
Query Service status of specific service on Remote machine
SC < \\Computer Name > QUERY < Service Name >
Query Service status of all services on local machine
SC QUERY
Stop a Service on local machine
SC STOP < Service Name >
Start a Service on local machine
SC START < Service Name >
Start a service on Remote machine
SC < \\Computer Name > START < Service Name >
Stop a service on Remote machine
SC < \\Computer Name > STOP < Service Name >
Please see our next article Managing Windows Services from PowerShell to know more about managing Windows services from Powershell.
Related Posts:
- Windows 10 – Remote administration through PowerShell – Part 1
- Windows Administrator Basics: Managing Services from Command Line
- Windows Administrator Basics: Windows Services
- Windows Administrator Basics: Managing Windows Services from Powershell
- Windows Administrator Basics: Windows Registry
- Basic Knowledge for Windows Desktop Support Engineer
- Windows 10 /11 : Create a virtual drive with SUBST command
Subscribe to Techuisitive Newsletter
Be the first to know about our new blog posts. Get our newsletters directly in your inbox and stay up to date about Modern Desktop Management technologies & news.