简体   繁体   English

沉默的命令网站

[英]silent command net stop

I need to stop a service that has dependencies. 我需要停止具有依赖项的服务。

Annoyingly it asks the user to press yes or no. 恼人地,它要求用户按是或否。 The trouble is that I don't want it to ask. 麻烦的是我不想要它。 I want it to automatically do it. 我希望它能自动完成。 for example 例如

net stop msmq

but i cant see any possibilities. 但我看不出任何可能性。

NET
    [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
      HELPMSG | LOCALGROUP | PAUSE | SESSION | SHARE | START |
      STATISTICS | STOP | TIME | USE | USER | VIEW ]

I found the answer. 我找到了答案。 I tried to use this command: 我试着使用这个命令:

net stop msmq /y

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM