How to get all Windows service names starting with a common word?

前端 未结 3 457
[愿得一人]
[愿得一人] 2021-01-30 02:29

There are some windows services hosted whose display name starts with a common name (here NATION). For example:

  • NATION-CITY
  • NATION-STATE
  • NATION-
3条回答
  •  星月不相逢
    2021-01-30 02:43

    sc queryex type= service state= all | find /i "NATION"
    
    • use /i for case insensitive search
    • the white space after type=is deliberate and required

提交回复
热议问题