The service registry modification requires a restart. Try this command instead:
- sc.exe config iphlpsvc start= Auto
To find out why this service is getting disabled, do a clean boot troubleshooting.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
IP Helper service (or iphlpsvc) which I need for tunnel connectivity for some of my applications works fine.
The problem comes when it gets disabled unnoticed. If I manually go to "Services", startup type has changed to "Disabled" no matter what mode was in before. Then, I manually change to either "Manual", "Automatic", "Automatic (Delayed Start)", apply and then start the service, my applications will work fine again.
I have tried many different things on the Recovery window as "Restart the Service" but it doesn't restart again as it got Disabled. I have also tried the option "Run a program" to start it again.
As that option didn't work, I've also tried with "Task Scheduler", so every hour it would change the registry of the startup type of that service with the next command with the highest privileges:
REG add "HKLM\SYSTEM\CurrentControlSet\services\iphlpsvc" /v Start /t REG_DWORD /d 2 /f
> The operation completed successfully
And then, a while after,
net start iphlpsvc
> 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.
But that error appears, even repeating those two commands in a command prompt with admin rights.
None of those didn't work at all. It appears that I have to manually change the startup type with the "Services" program as explained in the beginning.
________________
Also I have tried to change the WaitToKillServiceTimeout at Registry Editor, in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control.
Didn't wait workeither
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
The service registry modification requires a restart. Try this command instead:
To find out why this service is getting disabled, do a clean boot troubleshooting.
Hello Ramesh,
thank you very much for your quick and useful answer. At least that command has worked as wonders along with the start:
sc config iphlpsvc start= auto
sc start iphlpsvc
As you pointed out, I will do the clean boot troubleshooting. Only thing here is that the computer I'm using is Remote Desktop Connection and I'm unsure if it I could connect after disabling many services.
Kind regards,
Enrique
This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.
Comments have been turned off. Learn more
Enrique,
Thanks for the update.
Only thing here is that the computer I'm using is Remote Desktop Connection and I'm unsure if it I could connect after disabling many services.
Please note that the official clean boot procedure disables only third-party services. The configuration of the built-in/Microsoft services won't be modified. Be sure to enable the "Hide all Microsoft services" checkbox first, as the article says.