lcService = 'FoxServiceTest' loLocator = createObject("wbemScripting.SwbemLocator") loWMI = loLocator.ConnectServer() loService = loWMI.Get("Win32_Service.Name='" + lcService + "'") with loService .Change(, , , , 'Automatic') ? .StartMode endwithIf you check Computer Management (you need to refresh first F5) you'll see it changed to automatic, and you can change all the properties listed in that method easily, but for the ones that are not there, you should be able to do the following, but keep in mind it does not work for all properties, for example it does not work for description although it will seem at first it succeeded (and is also generic for any property of an instance of a WMI Class
* Assuming the previous code is still valid with loService .Description = 'New Description' .Caption = 'New Caption' .Put_() ? .Description, .Caption && Do not be fooled by this, it did not work endwithOf course with this same code you can start, stop, pause, resume etc the service, using the appropriate methods, you can see all of this here