windows provide a command "tasklist" to achieve this requirement. So fallowing is the technical description about this.
tasklist /s IPAddress /u username /p password /fi "USERNAME eq processUsername"
- IPAddress - IP Address of the remote computer
- username - User name of the remote computer
- password - password of the remote computer
- processUsername - The process you need to monitor should under this user name (you can get user name from Task Manager of the remote computer) . If you no need to filter process by username, you can ignore "/fi "USERNAME eq processUsername" part from the command
Full bat file
@echo off echo processing, please wait... tasklist /s IPAddress /u username /p password /fi "USERNAME eq processUsername" echo echo ---------------------------------------------------------------------------- pause
For more information you can go to this page http://technet.microsoft.com/en-us/library/bb491010.aspx
