![]() taskkill /s remoteServer /u userName /FI "USERNAME eq userLoginId" Viewing the list of processes on remote computer Instead of ‘ imagename‘, now we use ‘ username‘ in the filter argument. The command is similar to the previous case with one change. If you need to kill outlook process, the command would be: taskkill /s 10.132.79.23 /u administrator /FI "IMAGENAME eq OUTLOOK.EXE" Kill processes executed by a particular user taskkill /s 10.132.79.23 /u administrator /FI "IMAGENAME eq CMD.EXE" taskkill /s remoteServer /u userName /FI "IMAGENAME eq filename"įor example, if I need to kill all command window processes, I would run the below command. We can use filter option (/FI) to specify the image name. This will allow the command to be executed from a batch file, without any user interaction. We can add /P switch to the above command, to specify the password in the command itself. ![]() We can as well specify FQDN name of the computer for /S option. SUCCESS: The process with PID 5088 has been terminated. Type the password for administrator:******
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |