3

Is the installation of a new unique instance of AD LDS (using either cmd or PowerShell) possible? All resources I can find online just use the Active Directory Lightweight Directory Services Setup Wizard.

PowerShell has the Active Directory Module for working with existing LDS instances but I have not found a way that it can be used for creating a new instance of AD LDS.

2
  • Microsoft's documentation states that you can use Powershell's Active Directory Module to work with LDS instances. Please edit the question to explain what do you have troubles with.
    – JosefZ
    Nov 29, 2018 at 15:38
  • Thank you @JosefZ, I have edited the question. I have not seen a way to create new instances of AD LDS with that module, which is the task I am asking about Nov 29, 2018 at 15:50

1 Answer 1

5

Yes, the "secret sauce" is a command called AdamInstall.exe, which can be run to perform unattended instance setups. You can run AdamInstall.exe on Server Core. Begin by creating this answer text file.

[ADAMInstall]
InstallType=Unique
InstanceName=InstanceName
LocalLDAPPortToListenOn=PortNumiber
LocalSSLPortToListenOn=PortNumiber
NewApplicationPartitionToCreate=PartitionName
DataFilesPath=D:\ADAMInstances\InstanceName\Data
LogFilesPath=D:\ADAMInstances\InstanceName\Data
ServiceAccount=DomainorMachineName\AccountName
ServicePassword=Password
Administrator=Domain\GroupName
ImportLDIFFiles="LDIFFilename1" "LDIFFilename2" "LDIFFilename3" 
SourceUserName=DomainorMachineName\AccountName SourcePassword=Password“
3
  • Since this uses Server Core, is this not usable on Windows 10 Pro? Nov 29, 2018 at 16:18
  • it should be available on windows 10 but I've not tested it there.
    – Jim B
    Nov 29, 2018 at 19:06
  • 2
    It looks like it is! Also, in case it's helpful to others: The full path to the executable is C:\Windows\ADAM\adaminstall.exe and if you run the command C:\Windows\ADAM\adaminstall.exe /?:answer it will give you a full description of all possible parameters that can be included in the answer.txt file. Nov 29, 2018 at 20:15

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .