Looking for a deployment that has a parameter to check status of service and then change the status.
I need to disable a service across multiple computers and looking for a deployment to do this. But figured this could be Global where you can enter the service name and as long as it finds it you can update otherwise it would just fail.
Maybe a dropdown that lists Disabled, Automatic, Automatic (Delayed Start)
@Timothy_Wachenfeld check out the task just pushed to global “Set Windows Services to Desired State Template”
Remember a template task should be duplicated and named for what you are using the template for.
It’s not a software configuration task.
Create a new task under that software if you want it be a software configuration task and select the same global script.
I tested setting it to Manual and that works but when pushing Automatic (Delayed Start) it shows the results as it changed it but when checking the service, it still just shows as Automatic. Are you able to test a service on your end to see if you can change it to Automatic (Delayed Start)?
Not sure if we want to force a reboot, the delayed start doesn’t need to take effect until after the machine is rebooted anyway, so it’s kind of pointless (in my opinion) just to reboot the machine for the sake of it displaying in the service manager, unless someone disagrees?