in

How do I use PSKill on a Terminal Server and only kill the instance for a logged on user?

App is MS Access, Word, Office 2003 using automation and the new environment is running this on Windows Server 2008 via Terminal Services and there are many users using this and the problem is intermittent and not all users are affected.

There are intermittent times the Word Object (via automation) is not terminating as it should and the temporary band aid-fix is to use PSKill.

P:\MS_Tools\pskill.exe \\TermServer -u Username -p password winword

This works except it terminates all instances of WinWord on the terminal server.

Many users are logged on and the app needs to terminate the WinWord ONLY for the affected user using VBA

What else do I need to do as I specify the username along with the computer name (which happens to be the terminal server) but all instances are terminated   HELP.

Movie Stars

Solution: How do I use PSKill on a Terminal Server and only kill the instance for a logged on user?


Sorry I am not a VB developer, but a quick google search resulted in

http://en.allexperts.com/q/Visual-Basic-1048/Kill-Process-VB-its-1.htm