computing
  • 0

How Do You Do a Quiet Net Stop

  • 0

Ok 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 mgmt”

I’m hoping to run the bat file to uninstall a program but first i need to stop some service and i would like it to be seemless or else it will hold up the process till someone clicks “y”

Share

1 Answer

  1. Usually, using /? would answer a lot of questions already, but not in this case. It must be noted that NET is a special command, as actually the command would be NET STOP, instead of NET. Nevertheless, the Help/Usage of the command is incomplete …

    C:\>net /?
    The syntax of this command is:

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

    C:\>net stop /?
    The syntax of this command is:

    NET STOP
    service

    C:\>

    • 0