Jump to content

How to get (all) services start type


Recommended Posts

Hi!

I have a question about services. How can i get a info about "service start type"?
I used a script Services.au3 where i got these values:
$SERVICE_BOOT_START
$SERVICE_SYSTEM_START
$SERVICE_AUTO_START
$SERVICE_DEMAND_START
$SERVICE_DISABLED
 
but i need to also get a Automatic (Delayed Start)..
do you guys now how to get it? Thanks!
Link to comment
Share on other sites

@ivobauerjr

Just for information, there's a WMI class which is called Win32_Service, from which you can query all the services information, as well as the StartMode, which is "clearly" wrote as a string, and not as a constant as it is returned by that function in Service.au3.

There are a lot of examples about WMI object, which is really useful in various cases :)

EDIT:

In the Win32_ServiceClass, the DelayedAutoStart is a boolean, and not a StartMode.

 

Edited by FrancescoDiMuro

Click here to see my signature:

Spoiler

ALWAYS GOOD TO READ:

 

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...