Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Trying to change a service from automatic start to automatic delayed started because there seems to be some issues with the service not starting up upon user login.

What I have tried:

I'm using Spooler as the target service for test purposes.
The part where I'm stuck is getting my batch file to change the services' startup type.

I've typed:
sc config Spooler start= delayed-auto
Result: Access Denied
Ran CMD as admin and retried to receive: Parameter is incorrect

can anyone tell me where I'm going wrong here. Please.
Posted
Updated 17-May-22 4:27am
v2
Comments
Richard MacCutchan 7-Feb-19 10:52am    
Which parameter is incorrect?
Graeme Cooper 7-Feb-19 11:25am    
after entering the command the message given is:
[SC] ChangeServiceConfig2 (delayed autostart flag) FAILED 87:

The parameter is incorrect.

Source used: https://www.itprotoday.com/compute-engines/q-how-can-i-set-service-automatic-delayed-start-command-line
Graeme Cooper 7-Feb-19 11:31am    
(Trying to work within the confines of a batch file)
Richard MacCutchan 7-Feb-19 11:47am    
I get the same thing; I assume that for some reason you are not allowed modify it. You could try going to the Services control from Task Manager and see if you can modify it from there. You may need to stop it first. But, it may be that this is a system controlled service that does not allow modification.

It seems you and Richard are not the only ones!

I was going to suggest the same thing that @Richar-MacCutchan has just mentioned - i.e. you may need to stop or disable it first.

In the meantime I did find a work-around here at ITExperience.NET[^] (Caveat - I have not tried this myself)
 
Share this answer
 
Comments
Maciej Los 7-Feb-19 14:10pm    
5ed!
Richard MacCutchan 7-Feb-19 14:24pm    
Richar ?
CHill60 7-Feb-19 15:12pm    
I was in my french phase
Graeme Cooper 11-Feb-19 9:12am    
This method does indeed work, however my situation doesn't allow me to follow the instructions in the link.
CHill60 11-Feb-19 9:16am    
Were you running regedit as admin? Or try launching it from the cmd window you opened as admin
Easy. The print spooler doesn't support delayed auto start.
 
Share this answer
 
Comments
Richard MacCutchan 7-Feb-19 14:25pm    
I had a feeling that was the real reason.
Graeme Cooper 8-Feb-19 5:22am    
....Ok, thanks for that
Graeme Cooper 8-Feb-19 5:31am    
Know of an alternative service I could use?
Dave Kreskowiak 8-Feb-19 8:15am    
I don't know of anyone that would invest the money into replacing the Windows Spooler.
Dave Kreskowiak 8-Feb-19 8:16am    
The more important question is why would you want to change the startup behavior of the Spooler?
If your service is part of a load order group it cannot be changed to use delayed auto start. You would need to remove it from the load order group.

For example, for the print spooler:

sc config Spooler group = ""
sc config Spooler start=delayed-auto
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900