theboylatham
Programmer
Morning,
For various reasons, I am trying to alter a service's start-up state via the registry and then start that service via using WMI.
The script successfully changes the 'Start' key for the service in registry from Disabled to Manual (the registry key updates and the service startup type in services) but then the service cannot be started via the script.
I have also changed the registry key via script (and manually) and attempted to start the service manually but this also fails (as below):
System error 1058 has occurred.
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
It looks as if changing the service start state via the registry is updating the key and the state in services.msc but still the service is disabled when attempting to start it.
A lot of words and probably not very well explained but I would be grateful for any help...
For various reasons, I am trying to alter a service's start-up state via the registry and then start that service via using WMI.
The script successfully changes the 'Start' key for the service in registry from Disabled to Manual (the registry key updates and the service startup type in services) but then the service cannot be started via the script.
I have also changed the registry key via script (and manually) and attempted to start the service manually but this also fails (as below):
System error 1058 has occurred.
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
It looks as if changing the service start state via the registry is updating the key and the state in services.msc but still the service is disabled when attempting to start it.
A lot of words and probably not very well explained but I would be grateful for any help...