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.

  • 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 '18 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 – Josh Withee Nov 29 '18 at 15:50

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.

ImportLDIFFiles="LDIFFilename1" "LDIFFilename2" "LDIFFilename3" 
SourceUserName=DomainorMachineName\AccountName SourcePassword=Password“
  • Since this uses Server Core, is this not usable on Windows 10 Pro? – Josh Withee Nov 29 '18 at 16:18
  • it should be available on windows 10 but I've not tested it there. – Jim B Nov 29 '18 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. – Josh Withee Nov 29 '18 at 20:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.