
上QQ阅读APP看书,第一时间看更新
Using the Install-ADDSDomainController PowerShell cmdlet
Just as when using dcpromo.exe, the Install-ADDSDomainController PowerShell cmdlet only needs an additional parameter to leverage the IFM package, as shown in the following code:
InstallationMediaPath
When combining it with the sample PowerShell command for adding an additional fully-writable domain controller to an existing domain, the following script emerges:
Install-WindowsFeature AD-Domain-Services -IncludeManagementTools
Import-Module ADDSDeployment
Install-ADDSDomainController -DomainName lucernpub.com -InstallationMediaPath "C:\Install"