Quantcast
Results 1 to 2 of 2

Check if remote service is running

  1. #1
    alberto is offline Senior Member
    Enjoys Windows 7 Forums
     
    Join Date
    May 2012
    Posts
    124
    Mac OS X 10.7.5 Chrome 22.0.1229.94

    Check if remote service is running

    Hi everybody, I'll get straight to the point: I am trying to write a script, program, whatever to check if a service is running on a remote host.
    My idea was to get this to run on a Win 7 Enterprise machine, check if a specific service (SQL Server Agent) is running on a bunch of remote hosts (Windows Server 2008 r2) and send a quick email with the status of my services.
    I wanted it to run on the Windows 7 machine so as not to overload the servers. Of course I have admin access to all of the servers.

    I know I could write a .NET program that check if the service is running locally and then call that program remotely, but I'd prefer all the computation to happen client-side and using the .NET framework so as not to install anything unnecessary on the servers.

    So, does anyone know how I can query a remote service to check if it's up or not?

    Thanks in advance!

    Reply With Quote Reply With Quote

  2. #2
    alberto is offline Senior Member Thread Starter Thread Starter
    Enjoys Windows 7 Forums
     
    Join Date
    May 2012
    Posts
    124
    Mac OS X 10.7.5 Chrome 22.0.1229.94

    Re: Check if remote service is running

    Hi folks, never mind, I found a solution.
    In case anyone is interested check out the sc.exe command line utility that comes with Windows.

    Reply With Quote Reply With Quote

Visitors found this page by searching for:

Search engine data is still being processed!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •