MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
@echo off set rpt=c:\TaskReport.txt set TaskNOTToDelete=Infected scan for /f %%a in (c:\computers16.txt) do call :process %%a goto :eof :process set pc=%1 ping %pc% -n 1 >nul if errorlevel 1 ( echo Could not connect to %pc% goto :eof ) echo Checking %pc%>>%rpt% for /f "tokens=1,*" %%s in ('schtasks /query /s \\%pc% /fo list^|find /i "TaskName:"') do ( echo. Evaluating %%s %%t>>%rpt% if /i "%%t" == "%TaskNOTToDelete%" goto :eof echo. Removing %%t from %pc%>>%rpt% schtasks /delete /s \\%pc% /tn "%%t" /f )
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.