I have not used this in production at all, and I'm not sure which version you have (I have Release 2.1.3155.0 version), and according to the accompanying .chm help file, the Task has the following properties:
- DoesExist Returns TRUE if the specified service.
- IsDisabled Returns TRUE if the service is disabled.
- ServiceName An abbreviated name that identifies a service on the system.
ServiceName must be set to "Short name that identifies the service for the system, such as" W3SVC ".
You can try to try a well-known service (for example, mssqlserver) and check the result of two other properties (DoExist / IsDisabled).
Update: here's the sample (works):
Import tasks, then call (for example)
<Microsoft.Sdc.Tasks.ServiceProcess.Exists ServiceName = "Server"> <Output TaskParameter = "IsExist" PropertyName = "Exists" / "> </Microsoft.Sdc.Tasks.ServiceProcess.Exists>
<Message text = "Does the service exist? $ (Exists)" / ">
source share