unable to start the service

Roger Roger 6,671 Reputation points
2024-12-24T13:05:41.3266667+00:00

Hi All

I am unable to log in to one of my Windows Server 2019 machines using domain credentials. I am receiving the following error: An attempt was made to log on, but the network logon service was not started. I tried starting the Netlogon and Workstation services, but I encountered an error. Please guide me on how to resolve this issue

s1

s2

s3

Windows Server 2019
Windows Server 2019
A Microsoft server operating system that supports enterprise-level management updated to data storage.
3,849 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,486 questions
Windows Server Management
Windows Server Management
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Management: The act or process of organizing, handling, directing or controlling something.
445 questions
Windows Server Infrastructure
Windows Server Infrastructure
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Infrastructure: A Microsoft solution area focused on providing organizations with a cloud solution that supports their real-world needs and meets evolving regulatory requirements.
558 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. MotoX80 34,856 Reputation points
    2024-12-24T16:44:01.7466667+00:00

    Run this command to view the configuration for the Workstation service.

    sc.exe qc lanmanworkstation
    

    See if something has changed the BINARY_PATH_NAME value.

    This is what I get on Windows 10/11 which I would expect to match a Server OS.

    [SC] QueryServiceConfig SUCCESS
    SERVICE_NAME: lanmanworkstation
            TYPE               : 20  WIN32_SHARE_PROCESS
            START_TYPE         : 2   AUTO_START
            ERROR_CONTROL      : 1   NORMAL
            BINARY_PATH_NAME   : C:\WINDOWS\System32\svchost.exe -k NetworkService -p
            LOAD_ORDER_GROUP   : NetworkProvider
            TAG                : 0
            DISPLAY_NAME       : Workstation
            DEPENDENCIES       : MRxSmb20
                               : NSI
                               : Bowser
            SERVICE_START_NAME : NT AUTHORITY\NetworkService
    
    

    Given that you get a "file not found" error, then you might have multiple problems. We would not have any way of knowing what happened on your server, so I would suggest doing some basic troubleshooting first.

    I built a Powershell script that I called IsWindowsHealthy.ps1 that runs common dism and sfc commands that are commonly suggested on this forum.

    See this link for the script.

    https://zcusa.951200.xyz/en-us/answers/questions/118183/how-to-fix-error-0x80070543-in-windows-10

    0 comments No comments

  2. Daisy Zhou 26,946 Reputation points Microsoft Vendor
    2024-12-25T07:41:46.06+00:00

    Hello

    Thank you for posting in Q&A forum.

    Error 2 and Error 1068 indicate that the services are either missing dependencies or there are issues with the services themselves. Here are some steps to troubleshoot:

    1. Check Service Dependencies:

    • Open Command Prompt as an administrator.

    • Run the following commands to check the dependencies for the services:

    sc qc lanmanworkstation

    sc qc lanmanserver

    sc qc mrxsmb10

    sc qc mrxsmb20

    sc qc nsi

    • If any dependencies are disabled, enable them using:

    sc config <service_name> start= auto

    1. Modify the Registry:

    • Open the Registry Editor (regedit).

    • Navigate to HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/Netlogon/.

    • Double-click on DependOnService and ensure it includes LanmanServer and LanmanWorkstation on separate lines.

    • Restart your server.

    1. Flush DNS and Reset IP:

    • Open Command Prompt as an administrator.

    • Run the following commands:

    ipconfig /flushdns

    ipconfig /registerdns

    netsh winsock reset

    netsh int ip reset

    • Restart your server.

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.