Skip to content

Instantly share code, notes, and snippets.

@joshfinley
Created February 26, 2020 18:47
Show Gist options
  • Save joshfinley/15f4d0d8b4ae4ee246c83d1b258f0331 to your computer and use it in GitHub Desktop.
Save joshfinley/15f4d0d8b4ae4ee246c83d1b258f0331 to your computer and use it in GitHub Desktop.
Install domain controller to windows server instance
Install-windowsfeature AD-domain-services
Import-Module ADDSDeployment
Install-ADDSForest
-CreateDnsDelegation:$false `
-DatabasePath "C:\Windows\NTDS" `
-DomainMode "Win2016" `
-DomainName "localwindowslab.com" `
-DomainNetbiosName "WINDOWSLAB" `
-ForestMode "Win2019" `
-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