Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Does anyone know how to gracefully stop a Windows process remotely on Windows XP Professional machines (i.e. there the remote machines are running Windows XP Professional)?

The pskill utility seems to only do forceful terminations, and the taskkill utility explicitly mentions in its usage message that "Termination of remote processes will always be done forcefully".

share|improve this question

3 Answers 3

One of possible ways to do it is to send WM_CLOSE message to the application's main window: works the same as when you press the '[X]' button.

The pre-installed taskkill /IM notepad.exe command will do the thing.

share|improve this answer

How about using the psexec command from SysInternals to initiate taskkill locally on the workstations? Since taskkill is technically executed locally, it should close the process gracefully.

share|improve this answer

The right tool seems to be PsService from Sysinternals. With PsService you
can Start/Stop/Query/Pause/etc. a service on a remote computer. Check it out...

Best regards....

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.