如何获取所有Windows服务名称以常见的单词开始? [英] How to get all Windows service names starting with a common word?
本文介绍了如何获取所有Windows服务名称以常见的单词开始?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
托管一些Windows服务,其显示名称以公用名称开头(此处为NATION)。例如:
There are some windows services hosted whose display name starts with a common name (here NATION). For example:
- NATION-CITY
- 国家/地区
- NATION-Village
有一些命令可以获得所有类似'NATION-'的服务。最后,我需要使用命令promt停止,启动和重新启动这样的服务。
Is there some command to get all the services like 'NATION-'. Finally I need to stop, start and restart such services using the command promt.
推荐答案
b
$ b
Got it :)
sc queryex type= service state= all | find /i "NATION"
- 使用
type =
是谨慎且必需的 之后的空格 - use
/i
for case insensitive search - the white space after
type=
is deliberate and required
这篇关于如何获取所有Windows服务名称以常见的单词开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文