banner



How To Restart Service Remotely Command Line

Computers in the habitation are plain very common these days and it'due south not unusual to detect more than i Windows PC or laptop in a household. Perhaps the parents have the desktop PC and the kids use a laptop or you take desktop machines networked together in your function for work. With the increment in computers at your disposal comes an increase in looking subsequently them when they adult a trouble, need tweaking or don't piece of work as efficiently as they should.

Ane of the ways to work on another reckoner without physically existence in front of it is of course via networking. Besides the obvious of being able to read and execute files on a remote computer or transferring files between computers, you tin can as well perform more than advanced maintenance tasks such as starting or stopping remote processes and even decision-making Windows Services to be started, stopped or completely disabled.

Here nosotros'll bear witness you some ways to view the status of Windows Services on a remote calculator in add-on to having the power to start and stop them without leaving your ain computer.

1. Yet Another (Remote) Process Monitor

This program hasn't been updated since 2009 but YAPM is ane of few tools that tin actually let you lot manage remote services from the condolement of a GUI. Nosotros have talked about the program before because of the remote procedure treatment abilities, but it's equally at abode controlling services.

YAPM allows you to view the services and their details on the remote car. It offers command of starting, stopping, or changing the startup blazon. In that location are two means to remotely connect to another computer; either via the easier WMI interface, or launching a YAPM server process on the remote machine (this option doesn't seem to work also well these days).

Yapm

For ease of use, nosotros'll evidence the WMI option. Run YAPM and click the round Options button most the top left of the window, select "Change connection type" from the bill of fare. This volition bring upwards the connections window, click "Remote via WMI" followed by Disconnect, and so enter the remote computer name or IP address along with the remote admin's username and countersign. Finally, click Connect and so Hibernate window.

Yapm connection type

In the master window, select the Services tab and after a few moments you should run into all the services on the remote computer (refresh if not). Now you can view and control the remote services as if they're on your own automobile with buttons or context menu options to first, terminate, prepare to autostart, on-demand startup (transmission), or disable from starting. YAPM requires .Internet 3.5 for Windows 10 users, a portable version is also available.

Download Yet Some other (Remote) Process Monitor


2. Application Access Server (A-A-S)

A-A-S is an old tool that actually boasts several powerful features. Sadly, it can be tricky to use and the official documentation isn't very helpful. With the ability to launch Windows applications and enable/disable services remotely over the internet as well every bit a local network, A-A-Due south has good potential uses. A possible drawback is information technology needs to be configured and run entirely on the remote computer.

Application access server

To get up and running quickly you don't need to configure that much. First, run the plan and click on Configure > User, highlight user admin in the list, and click modify. Replace the password and optionally the username, click OK. You tin also change the port from the default of 6262 to something like fourscore which will become around firewall port restrictions. Press Start to launch the spider web server.

Now go to a calculator on the network you wish to connect from and open up a spider web browser. Enter the IP accost of the calculator with A-A-S on it in the accost bar and append the port number (no need if you employ port 80), so it would look something like:

http://192.168.0.45:6262

You will then be prompted for the username and password of the user edited above. In the web interface, click the Services option on the left. The window will display the services on the remote computer forth with their current status. Practise note that A-A-Southward can't tell the departure between a disabled service or just a stopped service. For this reason, when yous press to Get-go a remote service it might non really showtime because it'due south startup state is set to Disabled.

A a s web interface

Services with Manual or Automatic startup types volition accept Kickoff/Stop requests but Pause will likely neglect. A-A-S offers extra security measures such as Silent or Stealth port options. Silent requires a keyword appended to the IP address and port while Stealthed uses a split AAS_Login.exe tool. Services can likewise be started and stopped using control line tools like Net or SC, this can be done in the Application configuration window.

Download Application Access Server


3. Controlling Remote Services via Command Prompt

The Windows congenital in SC command is basically a panel based version of the Services MMC snap in. It does have a problem considering there is no ability to log on as another user on the remote computer. Thankfully, combining SC with the Net USE control, we can connect to the remote computer and then perform service tasks. Bring upward an admin Command Prompt (Starting time > type cmd > Ctrl+Shift+Enter) and and so type the following:

Internet Apply \\computername countersign /User:username

Net use remote

The Net USE command first creates a connectedness to the remote reckoner with the credentials of i of its administrators. Then you tin use the SC command to query the status of a service and get-go/stop or modify its startup type. A few examples are:

Query whether the service is running or stopped:

SC \\computername Query servicename

Query the service startup type, path, display name, dependencies, and etc:

SC \\computername QC servicename

Start or end a service:

SC \\computername Start|Stop servicename

Change the service startup type:

SC \\computername Config servicename offset= Car|Demand|Disabled

Note: The single infinite after "start=" is important and must non be omitted!

Sc query start service

The above screenshot queries the Windows Update Service on the remote motorcar, starts it, and then queries it again to check the service has started. More information on how to employ the SC control can exist found at Microsoft Technet or third party sites similar SS64.Com.

If yous wish to terminate the connection with the remote computer, either reboot the figurer or run "Cyberspace Use \\computername /Delete".


4. Sysinternals PsService (part of PsTools)

The Microsoft owned developer Sysinternals has a set of command line utilities for local and remote administration called PsTools. One of the included tools is PsService and it's specifically made to handle remote services. The advantage this tool has over SC is the pick to supply the user proper name and password of a user on the remote motorcar, so the Internet control isn't needed. The syntax is:

Psservice \\computername -u username -p countersign command options

As PsService supplies user credentials equally arguments, you don't demand to include the Internet Employ command. The basic commands are broadly the aforementioned as the Windows SC utility such as query, config, commencement, end, and etc. Here are a few examples for handling the Windows Search Service:

Query the service:

Psservice \\computername -u admin -p pass Query wsearch

Query the startup configuration of the service:

Psservice \\computername -u admin -p pass Config wsearch

Sysinternals psservice servicce config

Start or stop the service:

Psservice \\computername -u admin -p pass Start|Stop wsearch

Set the startup type of the service:

Psservice \\computername -u admin -p pass Setconfig wsearch Automobile|Disabled|Demand

Psservice stop disable

The above image stops the Windows Search Service and so disables information technology. To completely disable a service, make certain to end it before setting its startup type. The total listing of syntax and arguments tin be plant in the included help document or on the SysInternals website.

Download Sysinternals PsTools (includes PsService)


5. Services/Computer Management Console

This method might be the easiest to use considering it doesn't rely on third party tools or the command line and is built into Windows. However, it can also exist a bit of a pain on some systems and there'due south a chance you will get errors or connectedness problems.

a) Press the Windows key and type "services" to open the Control Panel Services applet. Alternatively, type Services.msc into the Win+R Run dialog. Go to the Action menu > "Connect to another estimator".

b) Click Browse and enter the name of the remote calculator in the object proper noun box. Press OK and you volition exist prompted for the username and countersign of an business relationship on the remote computer.

Services network credentials

If you can't remember the remote computer's name, click Browse > Advanced > Find now. This will show a list of computers in the local workgroup where yous can discover the PC you want to connect with. Click OK to get dorsum to the master window.

Select computer name

c) The Services window should now accept the remote reckoner'southward proper name in the panel tree instead of Local. From there, all you have to do is expand "Services and Applications" and go to Services.

Computer management remote services

The remote Services Control Panel applet works with services in the exact same style as if you was controlling services on the local machine.

Finding Windows Service Names

Windows has more than than 1 proper noun for each service; the Service name and its Display Name. For example, "Windows Update" is the display proper noun for the Windows Update Service, Wuauserv is the service proper name.

Windows update display name

The easiest way to utilise these tools is with the shorter service name, you can discover names for services on your own computer if you're not sure, open Task Manager and go to the Services tab, the Proper noun cavalcade gives the name you need to use.

Task manager service names

Alternatively, y'all can apply the Control Panel Services applet (Services.msc) and double click the service to find the proper noun near the summit (pictured above). A useful resource for Service data including names for all versions of Windows is BlackViper.com.

How To Restart Service Remotely Command Line,

Source: https://www.raymond.cc/blog/remotely-start-and-stop-applications-or-services-over-the-internet/

Posted by: palmerwhinsise1961.blogspot.com

0 Response to "How To Restart Service Remotely Command Line"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel