Srv service does not exist as an installed service

8,518

A service has a display name, and an actual name. In this case, "Server" is the display name, "Lanmanserver" is the actual name. You need to the actual name with SC.EXE, so try

SC.EXE query lanmanserver

SERVICE_NAME: lanmanserver
        TYPE               : 20  WIN32_SHARE_PROCESS
        STATE              : 4  RUNNING
                                (STOPPABLE, NOT_PAUSABLE, IGNORES_SHUTDOWN)
        WIN32_EXIT_CODE    : 0  (0x0)
        SERVICE_EXIT_CODE  : 0  (0x0)
        CHECKPOINT         : 0x0
        WAIT_HINT          : 0x0

Also check the PATH environmental variable for invalid drives and remove them, or apply the hotfix described here: https://support.microsoft.com/en-us/kb/2316513

On a computer that is running Windows 7 or Windows Server 2008 R2, you have a volume that is referenced in the PATH system-environment variable. If the volume is inaccessible, the Lanmanserver service does not start after you restart the computer or after you stop and then restart the service manually. Additionally, event ID 7023 is logged in the System log.

enter image description here

Share:
8,518

Related videos on Youtube

Nqabeni Simela
Author by

Nqabeni Simela

Updated on September 18, 2022

Comments

  • Nqabeni Simela
    Nqabeni Simela almost 2 years

    I am failing to turn on File and printer sharing on my Windows Server 2008 R2 Enterprise Edition. Drilling down into the issue at hand I found that the following services were failing to start:

    • Computer Browser
    • Server

    On attempting to start the Server service manually the following message was returned on Windows System log file:

    The Server service depends on the following service: Srv. This service might not be installed

    Querying the service status as follows:

    sc query srv
    

    Returned:

    The specified service does not exist as an installed service.

    I have tried the following to remedy this problem:

    sfc /scannow
    

    which returned no errors.

    I have run and applied latest Windows updates. I have scanned the server for viruses and malware.

    I have also run netsh advfirewall reset

    None of the above attempts resolved the problem.

    Copying srv.sys file from a good running server also proved to be a challenge as the server stopped responding. I had to copy back the original srv.sys file.

    And the problem persists. I have run out of ideas I just need someone to point me in the right direction. The server can not be formatted since it's in a production environment.

    sincerely appreciate your insights.

    • dave_thompson_085
      dave_thompson_085 almost 8 years
      I think it's driver not service. On my system (which is client-Vista not S2008R2) lanmanserver shows dependent on srv, and that on srv2 and that on srvnet, all with computer icons not 2-gear icons, and sc query[ex] does list them as TYPE: 2 FILE_SYSTEM_DRIVER rather than any of the types used for services. I also see them in msinfo32 in Software Environment under System Drivers and not under Services. I don't see how that points to any fix, however.
    • Nqabeni Simela
      Nqabeni Simela almost 8 years
      Dave, actually you are right. I traced it from the registry settings to srv.sys file under windows -system32 - drivers folder. I am attempting an offline repair of Windows Server installation to see if that will remedy the problem.Thank you for your insight.
  • Nqabeni Simela
    Nqabeni Simela almost 8 years
    Thank you for your response sairam. I have already queried the browser service. It is in stopped state. It can not start because it depends on the Server 'lanmanserver' service. The Server service can not start because it depends on the 'srv' service which appears not to be installed.
  • Nqabeni Simela
    Nqabeni Simela almost 8 years
    Hi Craig620, Thank you kindly for your insight. I had already queried the lanmanserver service. It is in stopped state because it depends on the srv service which has a problem.The idea here is resolve the srv service.
  • djdomi
    djdomi almost 3 years
    it would be great, if you could show the difference between both
  • Denis Kruchkov
    Denis Kruchkov almost 3 years
    Between both what? ImagePaths are the same. And it is the only difference.
  • djdomi
    djdomi almost 3 years
    I meant, if you can show us the difference between non-working and working value?