Start and end a process on a remote computer??
Ever thought of starting a process on a remote computer? Here it goes…..
You would need windows NT resource kit for performing such a task. You can download the resource kit from the following link:
http://download.sysinternals.com/Files/PsTools.zip.
What exactly is a resource Kit?
It is basically a set of software or you can say utilities which are released after a major windows version. These utilities lets you administer tasks such as networking, security, troubleshooting, OS issues etc.
Note: Some anti-viruses might show the utilities as infected but don’t worry its certainly not infected.
Now coming back to the topic, here are the steps you need to perform:
1. Extract the tools to a folder. They don’t need any installation to run. The main advantage of these tools are that they don’t require any client software installation.
2. To start a process you will need a tool named PsExec. This will serve as a light weight Telnet that lets you control the Remote System.
3. A simplified usage of this command looks like the following:
PsExec \\computer –u username –p password command.
Here,
Computer = Name of the remote computer in UNC format.
Username = A username on the remote computer preceding the –u
Password = Password to the above mentioned username preceding the –p
Command = The command that is to be performed remotely.
4. Now to stop a process you will need another tool that is PsKill.
5. Copy PsKill on the executable path and type in pskill with the command line options defined below.
PsKill –t \\computer –u username –p password procedd_id process_name
Here,
Computer = Name of the remote computer in UNC format.
Username = A username on the remote computer preceding the –u
Password = Password to the above mentioned username preceding the –p
Process_id = The process ID for the process you want to kill.
Process_name = The process name for the process you want to kill.
Note here that you can either specify the process ID or the process name of the process you want to kill.
If computer name is omitted then PsExec will start the process on the local system and if you enter a computer name as “\\*” then PsExec will run the process on all the computers available on the current domain.
If you want to perform any other task other than this then you can create scripts with multiple commands of the above mentioned kind.
Wednesday, December 2, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment