CODE: [Copy to clipboard]for /f "tokens=*" %%i in ('net start ^|find /i "scheduler"') do set schsvc=%%i