Edit

Share via


Troubleshoot Netlogon service startup failures

This article describes the symptoms, causes, and solutions for the scenarios that lead to Netlogon service startup failures. The Netlogon service runs only when the computer is joined to Active Directory. When the computer is joined only to Microsoft Entra ID, the Netlogon service doesn't run.

Introduction to the Netlogon service

The Netlogon service on domain members provides support for the following functionalities:

  • New Technology LAN Manager (NTLM) sign-in requests
  • Kerberos Privilege Attribute Certificate (PAC) verifications
  • Domain controller (DC) discovery
  • Managing the host ServicePrincipalNames
  • Managing the system's computer account password

On DCs, the Netlogon service also handles these tasks:

  • Sharing the SYSVOL and NETLOGON shares after startup
  • Domain Name System (DNS) registration of NTDS records (A, AAAA, and SRV)
  • Managing the DC function ServicePrincipalNames
  • Maintaining trust passwords
  • Reading and building the subnet/site mappings that the server side of the DC locator needs to tell the clients about their sites
  • Maintaining a list of known trusted domains for security checking (trust scanner)

Service dependencies

To accomplish these operations, Netlogon requires facilities of other components and services within the operating system. Known as service dependencies, Netlogon depends on the services noted in the following diagram:

Diagram of the Netlogon service dependencies.

The Netlogon service depends on the Workstation service. The Workstation service depends on the Browser, MrxSMB20, NSI services, and so on. On DCs, the Netlogon service has additional dependencies on the Server service, which depends on the SAMSS and SRV2 services, while the SRV2 service depends on the SRVNET service, and so on.

These dependency relationships are detailed by the Services MMC snap-in (Services.msc) within the properties of the service's Dependencies tab. This dependency configuration is stored within the registry for each service's key under the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services registry key. Contained within each service key is a DependsOnService value that defines the specific, direct dependencies of that service. For example, the Netlogon service registry key of a DC defines the DependOnService value containing the data LanmanWorkstation LanmanServer.

To view the dependencies of the Netlogon service, use the Services MMC and inspect the service properties:

Screenshot of the Netlogon service properties.

Another method of querying dependencies is to use the Service Control Manager Configuration Tool (sc.exe) command-line utility. Here's the output of the QC command to query the configuration for the Netlogon service dependencies of a DC:

C:\Windows\System32>sc qc netlogon

[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: netlogon
   TYPE               : 20 WIN32_SHARE_PROCESS
   START_TYPE         : 2 AUTO_START
   ERROR_CONTROL      : 1 NORMAL
   BINARY_PATH_NAME   : C:\Windows\system32\lsass.exe
   LOAD_ORDER_GROUP   : MS_WindowsRemoteValidation
   TAG                : 0
   DISPLAY_NAME       : Netlogon
   DEPENDENCIES       : LanmanWorkstation
                      : LanmanServer
   SERVICE_START_NAME : LocalSystem

Or, you can navigate to the Netlogon service registry key to inspect the service configuration:

  1. Open the Registry Editor.

  2. Browse to the desired service key. In this example, the path is HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon:

    Screenshot of the Registry Editor showing the Netlogon key information.

  3. Confirm that the settings are correct. For example, the dependencies are configured (DependOnService value), the start type is defined (Start value), and the service binary is defined (ImagePath value).

Troubleshoot

If a dependent service fails to start, both that service and any services relying on the service don't start. When investigating a Netlogon service startup failure, it's important to identify which service is responsible for the failures of all other dependent services. For example, the following event logs are the System event log errors reported when the Netlogon service fails to start. The failure was caused because one of the Workstation (LanmanWorkstation) service dependencies (browser) failed to start:

Log Name: System
Source: Service Control Manager
Event ID: 7001
Level: Error
Description: The Netlogon service depends on the LanmanWorkstation service which failed to start because of the following error:
The dependency service or group failed to start.

Log Name: System
Source: Service Control Manager
Event ID: 7001
Level: Error
Description: The LanmanWorkstation service depends on the bowser service which failed to start because of the following error:
The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.

Netlogon startup failure issues

Netlogon startup failures (or any dependent service start failures) might require one or more actions to correct the problem. These actions can include (but aren't limited to):

  • Correct disabled dependent services.
  • Correct invalid or missing service configuration registry values.
  • Restore missing or corrupted executable or DLL files.
  • Correct restrictive registry permissions.

The following sections describe some event log errors that indicate that Netlogon failed to start.

Symptom 1

A dependent service doesn't start:

Log Name: System
Source: Service Control Manager
Event ID: 7001
Level: Error
Description: The Netlogon service depends on the <SERVICE NAME> service which failed to start because of the following error:
The dependency service or group failed to start.

Resolution

Inspect the dependent services to determine which services failed to start. Verify that the services have a correct service startup configuration using the Services MMC snap-in to view and modify the service configuration.

In the following example, the Workstation service is configured with a Disabled startup type and therefore is in a Stopped state:

Screenshot of services.msc showing the Workstation service is disabled.

Screenshot of the Workstation service properties showing a Disabled startup type.

Setting the Startup type to Automatic and starting the service restore the Workstation service operation.

Symptom 2

A nonexistent or invalid service is defined for the Netlogon service or a dependent service:

Log Name: System
Source: Service Control Manager
Event ID: 7003
Level: Error
Description: The Netlogon service depends on the following service: <MISSING OR INVALID SERVICE>. This service might not be installed.

Resolution

An invalid service might be configured in the DependOnService registry value of the Netlogon service, or the service referenced in this value might be missing as an installed service. In the following example, the Netlogon service on a member server failed to start because it can't validate a dependent service.

Log Name: System
Source: Service Control Manager
Event ID: 7003
Level: Error
Description: The Netlogon service depends on the following service: Contoso_Service. This service might not be installed.

Remove the offending entry found within the DependOnService registry value:

Screenshot showing how to edit the DependOnService registry value.

Screenshot showing how to remove an entry from the DependOnService registry value.

Symptom 3

An invalid or missing service Dynamic Linked Library (DLL) specified causes a dependent service not to start:

Log Name: System
Source: Service Control Manager
Event ID: 7001
Level: Error
Description: The Netlogon service depends on the <SERVICE NAME> service which failed to start because of the following error:
The specified module could not be found.

When you try to start the Netlogon service by using the Services MMC, the following error message is displayed:

Windows could not start the Netlogon service on Local Computer. Error 126: The specified module could not be found.

Resolution

Each service application must successfully initialize DLLs in order to function. To resolve this issue, perform a system file scan by using the System File Checker (SFC.exe) tool, restore the missing DLLs from a backup, or repair or a reinstall the operating system.

For more information, see Use the System File Checker tool to repair missing or corrupted system files.

Symptom 4

An invalid or missing service executable specified causes a dependent service not to start:

Log Name: System
Source: Service Control Manager
Event ID: 7000
Level: Error
Description: The Netlogon service failed to start due to the following error:
The system cannot find the file specified.

When you try to start the Netlogon service by using Services MMC, the following error message is displayed:

Windows could not start the Netlogon service on Local Computer. Error 2: The system cannot find the file specified.

Resolution

When viewing service properties via the Services MMC, validate that the services that failed to start have a valid value configured in the Path to executable field. Or, validate that the ImagePath value is correct in the registry for the affected services.

Symptom 5

The Netlogon service reports that the service entered the stopped state during system boot. When you try to manually start the service, the following error message is displayed:

The Netlogon service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

Resolution

Validate that the service permissions within the registry are set to the appropriate values. Permissions vary based on the system role, such as, DCs versus workstations or member servers. Ensure that no entries specify a Deny permission for SYSTEM or Administrators. By default, registry permissions are inherited from the parent registry key and the owner is configured as SYSTEM.

Symptom 6

The Netlogon is started successfully, but the service status is not reported as Started or Running but as Paused. For domain members, the status can be set by administrators by running Net pause netlogon and Net continue netlogon. In the services.msc snap-in, the services is displayed as the following screenshot:

Screenshot of the Netlogon services status.

You can also pause and continue (or resume) the Netlogon service on DCs.

Note

When the Netlogon service is paused, the DC doesn't respond to DC Locator requests (on LDAP port UDP/389). The computer is then not used for NTLM authentication or new Kerberos tickets.

Resolution

The Netlogon services on DCs might be paused because of configuration problems. The Netlogon.log contains the following entries about the causes:

  • Netlogon Service Paused

    The Netlogon service is paused by an administrator.

  • NlInit: DS is paused

    The Directory service is paused.

  • Waiting for RPCSS

    RPC Subsystem startup pending.

  • SysVol not ready

    The DFSR Initial replication not completed.

The last condition can be caused if the DFSR replication engine doesn't signal that the initial replication of SYSVOL has worked and is good to be shared. Therefore, The Netlogon service is in the paused status until the replication is completed, and only shares SYSVOL and Netlogon after the replication is completed. To troubleshoot this issue, see Troubleshoot missing SYSVOL and Netlogon shares for Distributed File System (DFS) Replication

Additional symptoms

  1. Other services, such as the Windows Time Service or the Group Policy Service might report failed operations due to the Netlogon service not being started:

    Log Name: System
    Source: Microsoft-Windows-Time-Service
    Event ID: 159
    Level: Warning
    Description: W32time is unable to communicate with Netlogon Service. This failure prevents NTPClient from discovering and using domain peers, besides causing problems with correct W32time service state being advertised by Netlogon. This could be a temporary condition that resolves itself shortly. If this warning repeats over a considerable period of time, ensure the Netlogon service is running and is responsive and restart W32time service to reintiaize the overall state. The error was 0x80070700: An attempt was made to logon, but the network logon service was not started.

    Log Name: System
    Source: Microsoft-Windows-Time-Service
    Event ID: 130
    Level: Warning
    Description: NtpClient was unable to set a domain peer to use as a time source because of failure in establishing a trust relationship between this computer and the 'litware.com' domain in order to securely synchronize time. NtpClient will try again in 15 minutes and double the reattempt interval thereafter. The error was: The RPC server is unavailable. (0x800706BA)

    Log Name: System
    Source: Microsoft-Windows-GroupPolicy
    Event ID: 1110
    Level: Error
    Description: The processing of Group Policy failed. Windows could not determine if the user and computer accounts are in the same forest. Ensure the user domain name matches the name of a trusted domain that resides in the same forest as the computer account.

  2. Management or other operations relying on the Netlogon service also fail when the Netlogon service isn't started:

    nltest /sc_query:litware.com
    
    I_NetLogonControl failed: Status = 1722 0x6ba RPC_S_SERVER_UNAVAILABLE
    
    net use \\192.168.1.11 /user:litware\administrator
    
    System error 1792 has occurred.
    
    An attempt was made to logon, but the network logon service was not started.
    
  3. The DC locator fails to locate a DC with error 1355 or "The specified domain either doesn't exist or couldn't be contacted."

  4. Domain trust relationships might fail if all reachable DCs have their Netlogon services stopped:

    Log Name: System
    Source: NETLOGON
    Event ID: 5719
    Level: Error
    Description: This computer was not able to set up a secure session with a domain controller in domain <DOMAIN> due to the following:
    We can't sign you in with this credential because your domain isn't available. Make sure your device is connected to your organization's network and try again. If you previously signed in on this device with another credential, you can sign in with that credential.
    This may lead to authentication problems. Make sure that this computer is connected to the network. If the problem persists, please contact your domain administrator.

    Note

    If this computer is a DC for the specified domain, it sets up a secure session with the primary domain controller (PDC) emulator in the specified domain. Otherwise, this computer sets up a secure session with any DC in the specified domain.