Share via

IP Helper service gets disabled and cannot be enabled via automated cmd

Anonymous
2023-06-28T06:12:06+00:00

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

Windows for home | Windows 10 | Performance and system failures

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.

0 comments No comments
Answer accepted by question author
  1. Ramesh 176.1K Reputation points Volunteer Moderator
    2023-06-28T06:44:34+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments

3 additional answers

Sort by: Most helpful
  1. Anonymous
    2023-06-28T06:56:58+00:00

    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

    1 person found this answer helpful.
    0 comments No comments
  2. Deleted

    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

  3. Ramesh 176.1K Reputation points Volunteer Moderator
    2023-06-28T07:03:56+00:00

    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.

    Image

    0 comments No comments