1.Setup Forest
1. [optional/recommended] Edit name of computer
2. Set Static IP for computer
Set Static IP for computer
3. Install AD-Domain-Services
# Install AD tools
Install-WindowsFeature -Name AD-Domain-Services -IncludeManagementTools
4. Create Forest
## Might need to restart before running the command ##
Import-Module ADDSDeployment
$password = ConvertTo-SecureString -AsPlainText "<your-custom-password>" -Force
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "WinThreshold" `
-DomainName "iceindustrial.is" `
-DomainNetbiosName "ICEINDUSTRIAL" `
-ForestMode "WinThreshold" `
-InstallDns:$true `
-LogPath "C:\Windows\NTDS" `
-NoRebootOnCompletion:$false `
-SysvolPath "C:\Windows\SYSVOL" `
-SafeModeAdministratorPassword $password `
-Force:$true
# Install the Active Directory module
Install-WindowsFeature RSAT-AD-PowerShell
# List Domains in forest
Import-Module ActiveDirectory # Verify that Active Directory is installed for powershell
Get-ADForest | select domains