"Could not start the Remote Procedure Call (RPC) Service. Error 1058" error message when you manually start the Remote Procedure Call service


Symptoms


When you try to start the Remote Procedure Call service manually, the service does not start. You may receive an error message that is similar to the following:
Could not start the Remote Procedure Call (RPC) Service. Error 1058: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

Cause


This behavior may occur if the Remote Procedure Call service is disabled for the hardware profile that you are currently using.

Resolution


To resolve this behavior, follow these steps.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
  1. Restart your computer by using the Safe Mode startup option. To do this, follow these steps:
    1. Restart your computer, and when the Boot menu appears, press F8.
    2. Under Windows Advanced Options Menu, select Safe Mode, and then press ENTER.
    3. When the Boot menu appears again with the words "Safe Mode" displayed at the bottom of the menu, select the operating system that you want to start, and then press ENTER.

  2. Click Start, click Run, type regedit, and then click OK.
  3. In the left pane, locate and then click the following registry subkey:
    HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Enum\ROOT\LEGACY_RPCSS
  4. On the File menu, click Export.
  5. In the File name box, type a name for the registry file.
  6. In the Save in list, click the location where you want to save the registry file, and then click Save.
  7. Right-click LEGACY_RPCSS, click Delete, and in the Confirm Key Delete dialog box, click Yes.

    Note Do not delete any one of the following subkeys that may be found under the ROOT subkey:
    • MS_L2TPMINIPORT
    • MS_NDISWANIP
    • MS_PPPOEMINIPORT
    • MS_PPTPMINIPORT
    • MS_PSCHEDMP
    • MS_PTIMINIPORT
  8. Exit Registry Editor.
  9. Restart your computer by using the Restart Windows Normally startup option.