Score:0

How do I prevent a Windows service from setting its own startup type to automatic?

cn flag

I have a self-starting service, but I want to start it manually instead. However, as long as the service is running, it continues to monitor its startup type status, and as soon as I change it to manual startup, it automatically changes back to auto startup.

Of course, I could stop the service and then change the start type, but when I need the service to run again, it will change itself to start automatically.

Is there any way to prevent the service from changing itself to auto-start?

Score:1
ru flag

Run the service under an account that has no privilege to change services.

cn flag
And hope the service handles that well.
Zac67 avatar
ru flag
@TomTom Of course - as we have no information about that service we can't really help with that.
埃博拉酱 avatar
cn flag
I noticed that the auto-start options of some services are gray and do not allow modification, such as Scheduler. Can this be done by setting some registry key?
Zac67 avatar
ru flag
@埃博拉酱 Yes, mostly - but you should definitely know what you're doing in that depth.
埃博拉酱 avatar
cn flag
@Zac67 So do you know which registry is to be set?
Zac67 avatar
ru flag
@埃博拉酱 Well, HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Schedule\Start would be for the task scheduler.
埃博拉酱 avatar
cn flag
@Zac67 No, this is the auto-start option, not the option to (dis)allow the auto-start option to be modified in the service center.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.