fb
Homepage 5 How-to Articles 5 Controlling of Services via SC, PsService, MMC Remotely

Controlling of Services via SC, PsService, MMC Remotely

Manage remote endpoints, deploy software and patches with Action1 cloud RMM solution.

Sign up and use free on up to 50 endpoints with no functionality limits or expiration.



July 5, 2019
Sometimes it is necessary to restart / stop / start the Windows service / service. For this purpose you can use built-in and third-party tools both on the command line and GUI options (e.g. SC, Psservice.exe, MMC).
This How-to describes different ways to Start or Stop Windows Service Remotely.

1. Using SC to Control Windows Services

The SC command is used to configure, query, stop, start, delete, and add system services on the Windows command line. Most of the SC command subcommands apply equally to drivers. If you have the appropriate permissions, the SC command can be used to manage services on both the local and remote systems.

Use this command to manage / poll service states,SC can be used locally and remotely, remote polling of service status

sc \\computer query servicename

Also you can find out the type of service startup:

sc \\computer qc servicename

Stop or start the service:

sc \\computer start|stop servicename

Also you can change the type of service startup:

sc \\computer config servicename start=auto|demand|disabled

Remote Control of Services Using SC, Psservice.exe, MMC. Option 1 SC command

2. Using NET utility to Control Windows Services

The PsExec utility is part of the Sysinternals PsTools package. It allows you to run commands on remote computers and does not require installation in the system. To use the utility, simply copy it to the folder with executable files (eg C: \ Windows \ system32) and run it from any command line shell: Cmd or PowerShell.

Remotely this command can be used in conjunction with psexec.exe, from the PSTOOLS kit. Everything is simple here – we use the command remotely using psexec:

PsExec.exe \\computer net stop servicename && net start servicename

wherestop | start is used for start/stop the service

3. Using PowerShell to Control Windows Services

Start the Windows PoweShell console with administrative privileges. To get a list of services registered on the local computer, use the cmdlet:

Get-Service

To check status use command:

Get-Service -ComputerName computer -Name servicename

Remote Control of Services Using SC, Psservice.exe, MMC. Using PowerShell Get service command

Perform the next actions to start, stop or restart services:

Get-Service -ComputerName computername -Name servicename | Restart-Service -Force

Get-Service -ComputerName computername -Name servicename | Stop-Service -Force

Get-Service -ComputerName computername -Name servicename | Start-Service

4. Using PsService.exe to Control Windows Services

PsService.exe is a command line utility for viewing and managing Windows services. PsService displays the status, configuration, and dependencies of services, and also allows you to start, pause, and restart them. The software allows you to log into the remote computer on behalf of another account in cases where the current account does not have the permissions necessary to access the remote system. The PsService utility includes a unique search function that allows you to detect active instances of a specified service on the network.

Included in the same set of PSTOOLS, this utility I liked most of all, the request for the status of the service:

PsService.exe \\computer query servicename

Use next command to view the configuration:

PsService.exe \\computer config servicename

To Start, stop, restart execute following

PsService.exe \\computer restart|stop|start servicename

psservice to restart service
Also you can configure service with help of command:

psservice \\computername -u admin -p pass setconfig servicename Auto|Disabled|Demand

5. Using MMC Snap to Control Windows Services

The Microsoft Management Console (MMC) is a place to store and display administration tools created by Microsoft and other software vendors. These tools are called snap-ins and are used to manage Windows hardware, software, and network components. Some of the tools located in the Administration folder, such as Computer Management, are MMC snap-ins.

To change the state of the service, to stop it, or to restart you will need to perform the following steps:

  • Ctrl + R> In the input field enter the command> MMC
  • File> Add / Remove Snap-in ….
  • Computer Management> Add> Specify Computer Name
  • In a snap – Services and Applications> Services
  • Select service> Perform actions required, in a regular manner
Services and Applications snap MMC

Consider Using Action1 to Start Windows Service Remotely if:

  • You need to perform an action on multiple computers simultaneously.
  • You have remote employees with computers not connected to your corporate network.

Action1 is a cloud-based remote monitoring and management encompassing tools such as automated patch management, software deployment, remote desktop, software/hardware inventory, endpoint management, and IT reporting.

Related Articles

How To Delete User Profiles Remotely with PowerShell

When a user logs onto the computer for the first time (not via the network to access shared folders or printers), Windows creates a user profile. Among its contents are the NTUSER.DAT file (user profile settings), user-specific folders (My Documents, Desktop, etc.),...

About Action1 RMM

Action1 RMM is a cloud-based IT solution for remote monitoring and management, patching, and remote support.

Start your free two-week trial of Action1, or use RMM tools for free forever on 50 endpoints with no functionality limitations!



0 Comments

Submit a Comment

Your email address will not be published.

cloud patch management solutions action1

MSP Solution

Centralize endpoint management and boost efficiency of IT service delivery.

automated server patch management action compliance

Patch Management

Identify and deploy missing OS and third-party software updates.

cloud software deployment tools windows

Software Deployment

Distribute software and updates across managed endpoints.

software distribution tools software inventory action1

IT Asset Inventory

Keep a detailed inventory and manage hardware and software assets.

web client remote desktop

Remote Desktop

Support users via seamless remote desktop connection.

web based rdp client

Unattended Access

Provide administrative support and manage remote devices.

automated patch management action1

Endpoint Management

Run PowerShell, custom scripts, reboot computers and restart services.

API integrations action1

RESTful API

Integrate Action1 RMM to your IT ecosystem.

computer inventory tool for compliance

Reports and Alerts

Conduct endpoint security audits with comprehensive reporting.