CODE: [Copy to clipboard]@echo off for /f "tokens=*" %%a in ('tasklist/svc^|find "TermService"') do echo %%a