Ejercicios de PowerShell: instalar Windows Active Directory desde PowerShell

Import-Module ADDSDeployment
Install-ADDSForest 
-CreateDnsDelegation:$false 
-DatabasePath "C:\Windows\NTDS" 
-DomainMode "Win2012R2" 
-DomainName "prueba.local" 
-DomainNetbiosName "PRUEBA" 
-ForestMode "Win2012R2" 
-InstallDns:$true 
-LogPath "C:\Windows\NTDS" 
-NoRebootOnCompletion:$false 
-SysvolPath "C:\Windows\SYSVOL" `
-Force:$true