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.

Josh Withee
  • 209
  • 3
  • 7
  • 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

1 Answers1

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“
Jim B
  • 24,081
  • 4
  • 36
  • 60
  • 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