简体   繁体   中英

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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