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 ]
Then we hit Ctrl+C to terminate the execution.
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.
I found the answer. I tried to use this command:
net stop msmq /y
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With