Skip to content

Instantly share code, notes, and snippets.

@peasead
Last active February 4, 2021 20:38
Show Gist options
  • Save peasead/12611e6dadddc89f55ce270ce6f7a85c to your computer and use it in GitHub Desktop.
Save peasead/12611e6dadddc89f55ce270ce6f7a85c to your computer and use it in GitHub Desktop.
Deploy Windows 2019 Active Directory and DNS services
# https://www.virtualgyanis.com/post/step-by-step-how-to-install-and-configure-domain-controller-on-windows-server-2019
Import-Module ADDSDeployment
Install-ADDSForest `
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "WinThreshold" `
-DomainName "huntops.blue" `
-DomainNetbiosName "HUNTOPS" `
-ForestMode "WinThreshold" `
-InstallDns:$true `
-LogPath "C:\Windows\NTDS" `
-NoRebootOnCompletion:$false `
-SysvolPath "C:\Windows\SYSVOL" `
-Force:$true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment