Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Determine service status

by dasgar (Priest)
on Mar 12, 2020 at 19:59 UTC ( #11114186=note: print w/replies, xml ) Need Help??

in reply to Determine service status

When looking for utilities on Windows, one resource that I will usually check is Sysinternals. In your case, you might be interested in the PsService utility from Sysinternals. This utility "displays the status, configuration, and dependencies of a service, and allows you to start, stop, pause, resume and restart them" on the local system and remote Windows systems as well (assuming that you have login credentials for the remote system). To use it, just download it and use it. There is no install.

To use PsService inside a Perl script, just use something like Capture::Tiny (or whatever your favorite method/module to get output from running external commands). However, I would recommend running PsService once before using in your code. Almost all of the Sysinternal tools will have a EULA pop up to deal with on the first time the tool is run.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11114186]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2021-09-24 10:33 GMT
Find Nodes?
    Voting Booth?

    No recent polls found