Server 1: The Domain Controller
Script 1
New-NetIPAddress -InterfaceAlias ethernet -IPAddress 192.168.1.10 -AddressFamily IPv4 -PrefixLength 24
Install-WindowsFeature -Name ad-domain-services
Rename-Computer dc -RestartScript 2
Import-Module ADDSDeployment
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "WinThreshold" `
-DomainName "Conlab.local" `
-DomainNetbiosName "CONLAB" `
-ForestMode "WinThreshold" `
-SafeModeAdministratorPassword (ConvertTo-SecureString -AsPlainText Labo1234 -Force) `
-InstallDns:$true `
-LogPath "C:\Windows\NTDS" `
-NoRebootOnCompletion:$false `
-SysvolPath "C:\Windows\SYSVOL" `
-Force:$trueBefore we move on
Last updated