in reply to Remote NT services

Exchange Service Monitor uses the following to describe the various values of the CurrentState returned by Win32::Service::GetStatus:
%state = ( 0 => "Unknown", 1 => "Stopped", 2 => "Starting", 3 => "Stopping", 4 => "Running", 5 => "Resuming", 6 => "Pausing", 7 => "Paused", );

Added: There is an article that talks about using Win32::Service. The information in the web-exclusive table is very informative. Also be sure to check the Win32 Platform SDK documentation as pointed out by the module's documentation.

Replies are listed 'Best First'.
Re: Re: Remote NT services
by blackadder (Hermit) on Aug 12, 2003 at 18:59 UTC
    Thanks for this,...

    What about this "ServiceType = 0, or 272 or 323", will this help me to determine if a service is automatic or manual?
    Thanks.
Re: Re: Remote NT services
by blackadder (Hermit) on Aug 12, 2003 at 19:23 UTC
    PLEASE HELP

    I have just looked at "web-exclusive table " and I can't find anywhere where I can determin if a service is automatic or manual.

    Thanks alot.

      I just posted Check Win32 Service Start Type and I think it might help you. :-)

      You'll need to modify it a little to work with remote servers. Most of what you will need to do is as follows:
      Remove the delimiter argument*, change all forward slashes to double backslashes and then change the line that defines $services to add $machine\\ before HKEY_LOCAL_MACHINE.

      * rather than rewrite portions of your existing script...