How To Enable A Service Remotely

Table of contents:

How To Enable A Service Remotely
How To Enable A Service Remotely

Video: How To Enable A Service Remotely

Video: How To Enable A Service Remotely
Video: Remotely Start Services on Windows network using powershell (Servers and Workstations) 2024, May
Anonim

Remote enabling and disabling of a service in the Windows operating system can be carried out using the specialized utility Sysinternals PsService included in the PsTools package and designed to automate this procedure.

How to enable a service remotely
How to enable a service remotely

Instructions

Step 1

Make sure ports 139 and 445 are open on the computer to enable the desired service remotely. Please note that the implementation of this procedure assumes that the user has administrator rights.

Step 2

Download the PsTools package archive from the official Microsoft Sysinternals website to your computer and unpack it to any convenient location. Locate the pssevice.exe executable file.

Step 3

Call the main system menu by clicking the "Start" button on your computer and go to the "Run" dialog. Type cmd in the "Open" line and confirm the launch of the command line utility by pressing the function key Enter.

Step 4

Navigate to the folder with the psservice.exe application. Please note that when you start the application for the first time, you must confirm your agreement with the license agreement by clicking the Agree button in the system request window that opens. Type command

psservice.exe / RemoteComputerName -u RemoteComputerAdmin_AccountName -p RemoteComputer_Admin_password start service_name

in the command interpreter text box and confirm the selected action by pressing the softkey labeled Enter.

Step 5

The selected service is stopped using the command

psservice.exe / RemoteComputerName -u RemoteComputerAdmin_AccountName -p RemoteComputer_Admin_password stop service_name.

Use the syntax

psservice.exe / remote_computer_name -u_admin_account_name of the remote_computer_p_admin_password query

to display all available services on the remote computer. Add the value | more after the last command to stop scrolling.

Recommended: