sc.exe config

Reference article for the sc.exe config command, which changes service configurations by modifying the value of a service's entries in the registry and in the Service Control Manager database.