다음을 통해 공유


AD LDS: The AD LDS Instance Service Is Not Set to Start Automatically


Introduction

This topic is intended to address a specific issue identified by a Best Practices Analyzer scan. You should apply the information in this topic only to computers that have had the Active Directory Lightweight Directory Services (AD LDS) Best Practices Analyzer run against them and are experiencing the issue addressed by this topic. For more information about best practices and scans, see Best Practices Analyzer.

Operating System

Windows Server 2012

Product/Feature

Active Directory Lightweight Directory Services (AD LDS)

Severity

Error

Category

Configuration


Issues

The AD LDS instance service startup type is not set to Automatic for this instance
 


Impact

If the startup type of this AD LDS instance service is not set to Automatic, the AD LDS instance service cannot respond to client directory requests


Resolution

Change this AD LDS instance service startup type to Automatic in Services Control Manager or by running the following Windows PowerShell command: Set-Service {0} -StartupType Automatic

Use one the following procedures to change the AD LDS instance service startup type to Automatic. After you change the AD LDS instance service startup type, rerun the AD LDS BPA to verify compliance.

To perform any of the following procedures, you must be a member of the Builtin\Administrators group on the target server.

To use Services Control Manager to change the AD LDS instance service startup type

  1. Click Start, click Administrative Tools, and then click Services.

    -Or-

    Click Start, click Run, then type the following command and click OK:

    Services.msc

  2. Right-click the name of the AD LDS service and click Properties.

  3. On the General tab, change the Startup type: to Automatic, and then click OK.

To use Windows PowerShell to change the AD LDS instance service startup type

  1. Open Windows PowerShell on the Windows Taskbar.

  2. Type the following command and press ENTER:

    Set-Service AD LDS instance service name -StartupType Automatic
    

    For example, if the AD LDS instance service name is ADLDS1, type the following command and press ENTER:

    Set-Service ADLDS1 -StartupType Automatic
    

To use the sc.exe to change the AD LDS instance service startup type

  1. Click Start, click All Programs, click Accessories, and then click Command Prompt.

    -Or-

    Click Start, click Run, then type the following command and click OK:

    cmd

  2. Type the following command and press ENTER:

    sc UNC path for server config AD LDS instance service name start=auto
    

    For example, to change the startup type for an AD LDS instance service named ADLDSInstance1 on a server named ADLDSServer15, type the following command and press ENTER:

    sc \\ADLDSServer15 config ADLDSInstance1 start=auto
    

    The command should return the following result:

    [SC] ChangeServiceConfig SUCCESS
    

Additional References

Using the Set-Service Cmdlet (http://technet.microsoft.com/en-us/library/ee176963.aspx)