http://www.perlmonks.org?node_id=995561

kalyanbhave has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Need to stop and start a service in a windows server using admin rights..
  • Download Code

Replies are listed 'Best First'.
Re: Need to stop and start a service in a windows server using admin rights..
by marto (Cardinal) on Sep 25, 2012 at 14:27 UTC
Re: Need to stop and start a service in a windows server using admin rights..
by BrowserUk (Patriarch) on Sep 25, 2012 at 15:17 UTC

    Use:

    system q[net start "your service name"]; system q[net stop "your servoce name"]

    Type net help start and net help stop at a command line for details.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

    RIP Neil Armstrong