Remotely Disconnect Users in Another Network Machine If you use Terminal Service often, I am pretty sure you have been annoyed by user who does not log off from the remote session after they are done. Not logging off essentially, occupies a TS CAL (Terminal Service Client Access License) license. And as you know, a Read more about Tech Talk : Batch Command – Remotely Logoff Users[…]
Batch File To Search and Destroy a Process The batch script below outlines how to search and kill a process; for example vlc.exe process running on a system.
IF %ERRORLEVEL% = 0 THEN (GOTO found)
TIMEOUT /T 1
taskkill /im vlc.exe
The batch script pipes the output from tasklist into find command which searchs for “vlc*”, and use an IF-statement and a GOTO to continue looping, checking Read more about Tech Talk : Batch File – Look for Process And Kill It[…]