Remember to maintain security and privacy. Do not share sensitive information. Procedimento.com.br may make mistakes. Verify important information. Termo de Responsabilidade

How to Manage Windows Services Using Services Manager

Managing services is a critical task for system administrators to ensure the smooth operation of applications and the operating system itself. In the Windows environment, the Services Manager is a built-in tool that allows administrators to start, stop, and configure system services. This article will guide you through the process of using the Services Manager, as well as alternative methods via Command Prompt (CMD) and PowerShell.


Examples:


Using Services Manager GUI


1. Open Services Manager:



  • Press Win + R to open the Run dialog.

  • Type services.msc and press Enter.

  • The Services Manager window will open, displaying a list of all installed services.


2. Start/Stop a Service:



  • Find the service you want to manage from the list.

  • Right-click the service and select either Start, Stop, Pause, or Restart as needed.


3. Configure a Service:



  • Right-click the service and select Properties.

  • In the Properties window, you can change the startup type (Automatic, Manual, Disabled) and set recovery options.


Managing Services via Command Prompt (CMD)


1. Open Command Prompt as Administrator:



  • Press Win + X and select Command Prompt (Admin) or Windows PowerShell (Admin).


2. Start a Service:


   net start [ServiceName]

Example:


   net start wuauserv

3. Stop a Service:


   net stop [ServiceName]

Example:


   net stop wuauserv

4. Query the Status of a Service:


   sc query [ServiceName]

Example:


   sc query wuauserv

Managing Services Using PowerShell


1. Open PowerShell as Administrator:



  • Press Win + X and select Windows PowerShell (Admin).


2. Start a Service:


   Start-Service -Name [ServiceName]

Example:


   Start-Service -Name wuauserv

3. Stop a Service:


   Stop-Service -Name [ServiceName]

Example:


   Stop-Service -Name wuauserv

4. Get the Status of a Service:


   Get-Service -Name [ServiceName]

Example:


   Get-Service -Name wuauserv

Automating Service Management with Scripts


Batch Script Example:


@echo off
net start wuauserv
pause
net stop wuauserv
pause

PowerShell Script Example:


Start-Service -Name wuauserv
Start-Sleep -Seconds 10
Stop-Service -Name wuauserv

To share Download PDF