Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

silent command net stop [closed]

Tags:

command

cmd

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 ]
like image 555
Kjenos Avatar asked Apr 21 '15 12:04

Kjenos


People also ask

How do I stop a command in CMD?

Then we hit Ctrl+C to terminate the execution.

What does net stop do in CMD?

The net stop command is used to stop a network service. Net time can be used to display the current time and date of another computer on the network.


1 Answers

I found the answer. I tried to use this command:

net stop msmq /y
like image 64
Kjenos Avatar answered Sep 20 '22 16:09

Kjenos