Jump to content

How to check for a service in a remote computer


Recommended Posts

Hi all,

Is it possible to check for a particular service on a remote computer? I need to ensure that a service is up, before i can telnet into a machine.

any help would be greatly appreciated , thanks.

~Kris

Link to comment
Share on other sites

Use GEOSoft's Services.au3

I figured a quicker way, using windows tasklist utility.

tasklist /s 127.0.0.1 /FI "SERVICES eq autoit3.exe" >file.txt

this would write the output(image name, PID..etc) to file.txt. if the service does not exist, the file would be empty.

then its just a matter of reading the file. filesize>0 and filesize=0 checks to ensure the service is up or not.

Thanks for responses :)!

~Kris

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...