https://dirteam.com/sander/2012/09/12/reusing-a-role-installation-xml-file-in-windows-server-2012-to-install-the-active-directory-domain-services-role/
Sinon avec Powershell c'est rapide sans utiliser le fichier xml.
Pour DHCP
http://pbarth.fr/node/188
Pour AD exemple sur 2016:
Install-WindowsFeature –name AD-Domain-Services -IncludeManagementTools
Install-ADDSForest -CreateDnsDelegation:$false -DatabasePath "D:\NTDS" `
-DomainMode " WinThreshold" -DomainName "xxxx" -DomainNetbiosName "xxxx" `
-ForestMode " WinThreshold" -InstallDns:$true -LogPath "D:\NTDS" `
-SysvolPath "D:\SYSVOL" -Force:$true