One of the common remote tasks is restarting a service, a process, or the computer itself.
A remote computer may be at another location, on the cloud, or simply in another room.
It is convenient to manage it remotely rather than physically accessing it.

These include both command-line methods and GUI-basedconsoles.
Thetasklistcmdlet can be used with parameters to view the processes and tasks running on a remote PC.
Similarly, the PsList.exe tool, which is a part ofSysinternals PsTool, also lists the same information astasklist.

View all process list remotely using Tasklist
This can be done through the command line as well as theServices console.
Now, you must also deactivate the UAC Remote Restrictions on the remote computer.
Note that this method involves manual changes to the Windows Registry.

Download PsTools
Note:To fire up the remote desktop connection remotely, refer tothis guide.
Note:Misconfiguration of critical values in the systems registry could be fatal for your operating system.
Therefore, we insist that you create asystem restore pointbefore proceeding forward with the process.

View all processes list remotely using PsList
Name the DWORD LocalAccountTokenFilterPolicy.
This can also be used to display a list of processes running on the remote computer.
This includes theTasklistcmdlet, as well as others, likeWMIC.

List all processes remotely in a tree view using PsList
Here are the steps to connect to the remote computers Command Prompt:
Start bydownloading the PsTools.
This means that the computer has successfully connected to the remote computers Command Prompt.
Let us now see how to kill a process.

Query all processes on a remote computer using Get-Process (PowerShell)
Now enter the password for the user account.
The process will now be terminated successfully.
Kill Process Remotely using PsKill
PsKillcomes with the SysInternals PsTool suite.

Connect to remote computer’s Command Prompt
It can also be used to kill a process on a remote computer.
Here is how:
Extract the contents of the PsTool file.
The selected process will now be terminated on the remote computer.

Kill process remotely using Taskkill
This can be done using theStop-Processcmdlet.
One caveat of this command is that you cannot provide the name of the remote computer directly.
However, it can be achieved using theInvoke-Commandcmdlet and providing the credentials initially to connect to the remote PC.

Provide the password
Invoke-Commandallows you to run commands on other computers.
The selected process will now be terminated on the remote computer.
This concludes our discussion on managing the different tasks and processes on a remote Windows computer.

Terminate Windows process remotely using PsKill
Manage Windows Services Remotely
Like the processes, you could also manage Windows services remotely.
Let us start with the GUI method that involves using the local Windows Services Console.
The Services Console can connect to other computers directly and manage them as well.

Provide and save credentials
It is also capable of controlling the services on another PC on the data pipe.
As you may notice, most of the methods discussed are using the command-line interfaces on Windows OS.
If you are a sysadmin, then surely this article is worth a read.

Kill process remotely using Stop-Process (PowerShell)
0
Get weekly insights, tips and exclusive content delivered straight to your inbox.
Talk to us straight and get your questions answered right away

Connect Services to another computer

Enter the remote computers name

Services Console successfully connected to remote computer

Start, Stop, Restart a service from the Service Console

Start or stop Windows service remotely using SC from Command Prompt

Start, Stop, Restart Windows service using PsService



source: www.itechtics.com