sc query type= service state= all|find /i "updates" in For Schleife

Star InactiveStar InactiveStar InactiveStar InactiveStar Inactive
 

Alle Dienste neu starten die "updates" im Display- oder Dienstname enthalten:

FOR /F "tokens=2,*" %a IN ('sc query type^= service state^= all ^|find /i "updates"') DO echo NET START "%a %b"